def _format_error(error):
 try:
  return _format_error_helper(error)
 except:
  return json.dumps(error, indent=2, sort_keys=True)

def _format_error ( error ) : try : return _format_error_helper ( error ) except : return json . dumps ( error , indent = 2 , sort_keys = True )
return string to log/print explaining the given error .