parameters: (path, error)
return_statement: return ErrorRecord(path, error_string, new_error)
docstring: Make an error record with correctly formatted error string.
  
    Errors are not able to be serialized (pickled) over processes because of
    their pointers to the complex token/context graph.  We use an intermediary
    serializable class to pass back just the relevant information.
  
    Args:
      path: Path of file the error was found in.
      error: An error.Error instance.
  
    Returns:
      _ErrorRecord instance.
docstring_summary: Make an error record with correctly formatted error string.
docstring_tokens: Make an error record with correctly formatted error string .
function: def MakeErrorRecord(path, error):
    """Make an error record with correctly formatted error string.
  
    Errors are not able to be serialized (pickled) over processes because of
    their pointers to the complex token/context graph.  We use an intermediary
    serializable class to pass back just the relevant information.
  
    Args:
      path: Path of file the error was found in.
      error: An error.Error instance.
  
    Returns:
      _ErrorRecord instance.
    """
    new_error = error.code in errors.NEW_ERRORS
  
    if FLAGS.unix_mode:
      error_string = erroroutput.GetUnixErrorOutput(path, error, new_error)
    else:
      error_string = erroroutput.GetErrorOutput(error, new_error)
  
    return ErrorRecord(path, error_string, new_error)
function_tokens: def MakeErrorRecord ( path , error ) : new_error = error . code in errors . NEW_ERRORS if FLAGS . unix_mode : error_string = erroroutput . GetUnixErrorOutput ( path , error , new_error ) else : error_string = erroroutput . GetErrorOutput ( error , new_error ) return ErrorRecord ( path , error_string , new_error )