def format_error(module, error):
logging.error(module)<EOL>print(error.message)<EOL>print(json.dumps(error.error, sort_keys=True, indent=<NUM_LIT:4>, separators=('<STR_LIT:U+002C>', '<STR_LIT>')))<EOL>exit(<NUM_LIT:1>)<EOL>
Format the error for the given module.