<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def error_message_and_exit(message, error_result):
 """Prints error messages in blue, the failed task result and quits."""

    if message:
        error_message(message)
    puts(json.dumps(error_result, indent=2))
    sys.exit(1)