We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cdb28 commit e577442Copy full SHA for e577442
src/warnet/process.py
@@ -10,7 +10,7 @@ def run_command(command: str) -> str:
10
return result.stdout
11
12
13
-def stream_command(command: str, env=None) -> bool:
+def stream_command(command: str) -> bool:
14
process = subprocess.Popen(
15
["/bin/bash", "-c", command],
16
stdout=subprocess.PIPE,
@@ -27,6 +27,5 @@ def stream_command(command: str, env=None) -> bool:
27
return_code = process.wait()
28
29
if return_code != 0:
30
- print(f"Command failed with return code {return_code}")
31
- return False
+ raise Exception(process.stderr)
32
return True
0 commit comments