Skip to content

Commit

Permalink
stbtrace should have nonzero exit code on failure [Backport of #17 to…
Browse files Browse the repository at this point in the history
… 6.0.3.0] (#40)
  • Loading branch information
Don Brady authored May 11, 2020
1 parent f19c981 commit e7b1156
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/stbtrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@
script = template.render()
if args.bcc:
print (script)
exit(0)
else:
try:
exec(script)
except BaseException as e:
except KeyboardInterrupt:
exit(0)
except Exception as e:
print (e)
exit(1)

0 comments on commit e7b1156

Please sign in to comment.