def lowlevelErrorToString(errorcode):
 try:
  (name, advice) = ERROR_TO_STRING_DICT[str(errorcode)]
 except KeyError:
  name = 'UNKNOWN_ERROR'
  advice = ('Unrecognized error code (%s)' % errorcode)
 if (advice is not ''):
  msg = ('%s (%s)\n%s' % (name, errorcode, advice))
 else:
  msg = ('%s (%s)' % (name, errorcode))
 return msg

def lowlevelErrorToString ( errorcode ) : try : ( name , advice ) = ERROR_TO_STRING_DICT [ str ( errorcode ) ] except KeyError : name = 'UNKNOWN_ERROR' advice = ( 'Unrecognized error code (%s)' % errorcode ) if ( advice is not '' ) : msg = ( '%s (%s)\n%s' % ( name , errorcode , advice ) ) else : msg = ( '%s (%s)' % ( name , errorcode ) ) return msg
converts a low-level errorcode into a string .