Show More
@@ -208,7 +208,7 b' def dispatch(req):' | |||||
208 |
|
208 | |||
209 | msg = _formatargs(req.args) |
|
209 | msg = _formatargs(req.args) | |
210 | starttime = util.timer() |
|
210 | starttime = util.timer() | |
211 | ret = -1 |
|
211 | ret = 1 # default of Python exit code on unhandled exception | |
212 | try: |
|
212 | try: | |
213 | ret = _runcatch(req) or 0 |
|
213 | ret = _runcatch(req) or 0 | |
214 | except error.ProgrammingError as inst: |
|
214 | except error.ProgrammingError as inst: | |
@@ -239,7 +239,7 b' def dispatch(req):' | |||||
239 | req.ui.log('uiblocked', 'ui blocked ms', |
|
239 | req.ui.log('uiblocked', 'ui blocked ms', | |
240 | **pycompat.strkwargs(req.ui._blockedtimes)) |
|
240 | **pycompat.strkwargs(req.ui._blockedtimes)) | |
241 | req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", |
|
241 | req.ui.log("commandfinish", "%s exited %d after %0.2f seconds\n", | |
242 |
msg, ret |
|
242 | msg, ret, duration) | |
243 | try: |
|
243 | try: | |
244 | req._runexithandlers() |
|
244 | req._runexithandlers() | |
245 | except: # exiting, so no re-raises |
|
245 | except: # exiting, so no re-raises |
@@ -49,7 +49,7 b' unhandled exception' | |||||
49 | $ hg crash 2> /dev/null |
|
49 | $ hg crash 2> /dev/null | |
50 | [1] |
|
50 | [1] | |
51 | $ hg blackbox -l 2 |
|
51 | $ hg blackbox -l 2 | |
52 |
1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited |
|
52 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited 1 after * seconds (glob) | |
53 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2 |
|
53 | 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2 | |
54 |
|
54 | |||
55 | alias expansion is logged |
|
55 | alias expansion is logged |
General Comments 0
You need to be logged in to leave comments.
Login now