Handle failed execution in execute_live

This commit is contained in:
bom 2023-07-18 12:18:09 +02:00
parent bf2d68bddc
commit 2ead8cc31b

View file

@ -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: