Raise error if process fails in execute_live

clj-bb-rewrite
bom 3 months ago
parent afec1fdd0c
commit c5af5c9198

@ -122,9 +122,11 @@ class ExecutionApi:
print(command)
else:
process = Popen(command, shell=shell)
outs, _ = process.communicate()
outs, errs = process.communicate()
while outs is not None:
stdout.buffer.write(outs)
if errs is not None:
raise RuntimeError(f"Execute live '{command}' failed with code {process.returncode}\n{errs}")
class EnvironmentApi:

Loading…
Cancel
Save