Files
27db5213dca4d9302b843dd22914a16e871f0b51
swift /bin
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
..
2013年09月20日 01:02:31 +08:00
2021年02月01日 13:26:53 -08:00
2013年09月20日 01:02:31 +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
2017年09月13日 05:57:30 +00:00
2014年07月24日 14:38:53 -07:00
2013年09月20日 01:02:31 +08:00
2013年09月20日 01:02:31 +08:00
2021年02月01日 13:26:53 -08:00
2019年08月30日 11:54:47 -07:00
2015年08月06日 11:02:40 +09:00
2015年08月06日 11:02:40 +09:00