##// END OF EJS Templates
dispatch: report OOM rather than traceback
Matt Mackall -
r5633:e04a6511 default
parent child Browse files
Show More
@@ -133,6 +133,8 b' def _runcatch(ui, args):'
133
133
134 except util.Abort, inst:
134 except util.Abort, inst:
135 ui.warn(_("abort: %s\n") % inst)
135 ui.warn(_("abort: %s\n") % inst)
136 except MemoryError:
137 ui.warn(_("abort: out of memory\n"))
136 except SystemExit, inst:
138 except SystemExit, inst:
137 # Commands shouldn't sys.exit directly, but give a return code.
139 # Commands shouldn't sys.exit directly, but give a return code.
138 # Just in case catch this and and pass exit code to caller.
140 # Just in case catch this and and pass exit code to caller.
General Comments 0
You need to be logged in to leave comments. Login now