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