##// END OF EJS Templates
errors: catch the new Error class in scmutil and chgserver...
Martin von Zweigbergk -
r48073:7a769ac4 default
parent child Browse files
Show More
@@ -515,7 +515,7 b' class chgcmdserver(commandserver.server)'
515 515 if inst.hint:
516 516 self.ui.error(_(b"(%s)\n") % inst.hint)
517 517 errorraised = True
518 except error.Abort as inst:
518 except error.Error as inst:
519 519 if inst.detailed_exit_code is not None:
520 520 detailed_exit_code = inst.detailed_exit_code
521 521 self.ui.error(inst.format())
@@ -205,7 +205,7 b' def callcatch(ui, func):'
205 205 detailed_exit_code = 50
206 206 except error.WdirUnsupported:
207 207 ui.error(_(b"abort: working directory revision cannot be specified\n"))
208 except error.Abort as inst:
208 except error.Error as inst:
209 209 if inst.detailed_exit_code is not None:
210 210 detailed_exit_code = inst.detailed_exit_code
211 211 if inst.coarse_exit_code is not None:
General Comments 0
You need to be logged in to leave comments. Login now