parameters: (error_content)
return_statement: return error_list[0].get('reason')
docstring: Returns the error reason as a string.
docstring_summary: Returns the error reason as a string.
docstring_tokens: Returns the error reason as a string .
function: def GetErrorReason(error_content):
    """Returns the error reason as a string."""
    if not error_content:
      return None
    if (not error_content.get('error') or
        not error_content['error'].get('errors')):
      return None
    error_list = error_content['error']['errors']
    if not error_list:
      return None
    return error_list[0].get('reason')
function_tokens: def GetErrorReason ( error_content ) : if not error_content : return None if ( not error_content . get ( 'error' ) or not error_content [ 'error' ] . get ( 'errors' ) ) : return None error_list = error_content [ 'error' ] [ 'errors' ] if not error_list : return None return error_list [ 0 ] . get ( 'reason' )