components/sync/PRESUBMIT.py
def FormatPresubmitError(output_api, message, affected_lines):
  """ Outputs a formatted error message with filename and line number(s).
  """
  if len(affected_lines) > 1:
    message_including_lines = 'Error at lines %d-%d in model_type.cc: %s' %(
      affected_lines[0], affected_lines[-1], message)
  else:
    message_including_lines = 'Error at line %d in model_type.cc: %s' %(
      affected_lines[0], message)
  return output_api.PresubmitError(message_including_lines)
 Outputs a formatted error message with filename and line number(s).
  
Outputs a formatted error message with filename and line number(s).
Outputs a formatted error message with filename and line number ( s ) .
def FormatPresubmitError(output_api, message, affected_lines):
  if len(affected_lines) > 1:
    message_including_lines = 'Error at lines %d-%d in model_type.cc: %s' %(
      affected_lines[0], affected_lines[-1], message)
  else:
    message_including_lines = 'Error at line %d in model_type.cc: %s' %(
      affected_lines[0], message)
  return output_api.PresubmitError(message_including_lines)
def FormatPresubmitError ( output_api , message , affected_lines ) : if len ( affected_lines ) > 1 : message_including_lines = 'Error at lines %d-%d in model_type.cc: %s' % ( affected_lines [ 0 ] , affected_lines [ - 1 ] , message ) else : message_including_lines = 'Error at line %d in model_type.cc: %s' % ( affected_lines [ 0 ] , message ) return output_api . PresubmitError ( message_including_lines )
Outputs a formatted error message with filename and line number(s).
Outputs a formatted error message with filename and line number ( s ) .
""" Outputs a formatted error message with filename and line number(s).
  """
output_api
message
affected_lines