Skip to content

Commit

Permalink
Set the output environment variable on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mponaws committed Apr 15, 2024
1 parent 6408724 commit 4a9494b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def execute_command(command):
err.returncode, err.with_traceback, err.output
)
)

if err.returncode == 2:
return err.output

raise
except Exception as err:
print(f"Unexpected {err=}, {type(err)=}")
Expand Down

0 comments on commit 4a9494b

Please sign in to comment.