mercurial/dispatch.py
changeset 36124 976a9fd706ed
parent 35942 f81df691efe7
child 36503 8b662717c53f
equal deleted inserted replaced
36123:8eb13f5d5d3f 36124:976a9fd706ed
   990 
   990 
   991     Called when handling an exception; the exception is reraised if
   991     Called when handling an exception; the exception is reraised if
   992     this function returns False, ignored otherwise.
   992     this function returns False, ignored otherwise.
   993     """
   993     """
   994     warning = _exceptionwarning(ui)
   994     warning = _exceptionwarning(ui)
   995     ui.log("commandexception", "%s\n%s\n", warning, traceback.format_exc())
   995     ui.log("commandexception", "%s\n%s\n", warning,
       
   996            pycompat.sysbytes(traceback.format_exc()))
   996     ui.warn(warning)
   997     ui.warn(warning)
   997     return False  # re-raise the exception
   998     return False  # re-raise the exception