diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-18 12:44:27 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-18 12:44:27 +0200 |
commit | 9108af615994f2fd84e395fcaea12998c3b70895 (patch) | |
tree | 539e23ff4f39a46c88230d6721e02bdf39b67dee | |
parent | 72bb52c13766e8957ef24accd1b63d4ea0b6234e (diff) | |
download | wumpus-hunter-9108af615994f2fd84e395fcaea12998c3b70895.tar.gz |
fix: if command fails, write its stderr to stderr
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rwxr-xr-x | wumpus-hunter | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wumpus-hunter b/wumpus-hunter index c6e5d83..06483c0 100755 --- a/wumpus-hunter +++ b/wumpus-hunter @@ -514,6 +514,7 @@ def run(run_log, argv, cwd=None): if run_log is not None: run_log.runcmd(argv, p.returncode, p.stdout.decode(), p.stderr.decode()) if p.returncode != 0: + sys.stderr.write(p.stderr) raise Exception(f"command {argv} failed") return p.stdout.decode() |