diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index 3459d6e..1565064 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -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: