We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93777a4 commit a4d4b4cCopy full SHA for a4d4b4c
.evergreen/scripts/utils.py
@@ -136,5 +136,10 @@ def run_command(cmd: str | list[str], **kwargs: Any) -> None:
136
cmd = " ".join(cmd)
137
LOGGER.info("Running command '%s'...", cmd)
138
kwargs.setdefault("check", True)
139
- subprocess.run(shlex.split(cmd), **kwargs) # noqa: PLW1510, S603
+ try:
140
+ subprocess.run(shlex.split(cmd), **kwargs) # noqa: PLW1510, S603
141
+ except subprocess.CalledProcessError as e:
142
+ LOGGER.error(e.output)
143
+ LOGGER.error(str(e))
144
+ sys.exit(e.returncode)
145
LOGGER.info("Running command '%s'... done.", cmd)
0 commit comments