##// END OF EJS Templates
exc: fixed exceptions prefix (again)
milka -
r4606:ba9a97a8 stable
parent child
Show More
@@ -218,8 +218,9 def map_vcs_exceptions(func):
218
218
219 if kind:
219 if kind:
220 if any(e.args):
220 if any(e.args):
221 args = [a for a in e.args]
221 _args = [a for a in e.args]
222 args.insert(0, '{}:'.format(exc_name)) # prefix first arg with org exc name
222 # replace the first argument with a prefix exc name
223 args = ['{}:'.format(exc_name, _args[0] if _args else '?')] + _args[1:]
223 else:
224 else:
224 args = [__traceback_info__ or '{}: UnhandledException'.format(exc_name)]
225 args = [__traceback_info__ or '{}: UnhandledException'.format(exc_name)]
225 if debug or __traceback_info__ and kind not in ['unhandled', 'lookup']:
226 if debug or __traceback_info__ and kind not in ['unhandled', 'lookup']:
General Comments 0
You need to be logged in to leave comments. Login now