Handle failed execution in execute_live
This commit is contained in:
parent
bf2d68bddc
commit
2ead8cc31b
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class ExecutionApi:
|
||||||
for line in iter(process.stdout.readline, b""):
|
for line in iter(process.stdout.readline, b""):
|
||||||
print(line.decode("utf-8"), end="")
|
print(line.decode("utf-8"), end="")
|
||||||
process.stdout.close()
|
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:
|
class EnvironmentApi:
|
||||||
|
|
Loading…
Reference in a new issue