Skip to content

Commit

Permalink
require successful SCons exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth committed Jul 20, 2024
1 parent 3f2dba4 commit 98030cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions enscons/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
def _run(alias):
try:
SCons.Script.Main.main()
except SystemExit:
pass
except SystemExit as e:
if e.code != 0:
raise
# extreme non-api:
lookup = SCons.Node.arg2nodes_lookups[0](alias).sources[0]
return os.path.basename(str(lookup))
Expand Down

0 comments on commit 98030cb

Please sign in to comment.