Matthew Vernon 89ee843080 swift-ring-builder: exit ERROR (2) on uncaught exceptions
swift-ring-builder has three exit statuses: 0 (OK), 1 (WARNING),
2 (ERROR). Uncaught exceptions in python result in an exit code of 1,
so for example problems writing a builder file to disk will result in
an exit of 1 (warning) rather than 2 (error).

This addresses that by overriding sys.excepthook to produce the usual
backtrace and then exit 2 (error); excepthook is called when an
exception is unhandled, unless that is SystemExit.

Closes-Bug: 1960657
Change-Id: I7cfeff4f436ade319cf21d0d29853931aef6d20f
2022-02-15 14:29:14 +00:00
..
2021-02-01 13:26:53 -08:00
2021-02-01 13:26:53 -08:00
2021-02-01 13:26:53 -08:00
2015-08-06 11:02:40 +09:00
2021-02-01 13:26:53 -08:00
2015-08-06 11:02:40 +09:00