Handle failed execution in execute_live

pull/1/head
bom 11 months ago
parent bf2d68bddc
commit 2ead8cc31b

@ -112,7 +112,9 @@ class ExecutionApi:
for line in iter(process.stdout.readline, b""):
print(line.decode("utf-8"), end="")
process.stdout.close()
process.wait()
return_code = process.wait()
if return_code != 0:
raise RuntimeError(f"Execute live failed with code: {return_code}")
class EnvironmentApi:

Loading…
Cancel
Save