<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def handle_bad_update(operation, ret):
    '''report error for bad update'''
    print("Error " + operation)
    sys.exit('Return code: ' + str(ret.status_code) + ' Error: ' + ret.text)