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 73181fa commit ac9f527Copy full SHA for ac9f527
2 files changed
codeclash/utils/__init__.py
codeclash/utils/environment.py
@@ -0,0 +1,5 @@
1
+def assert_zero_exit_code(result: dict) -> dict:
2
+ if result.get("returncode", 0) != 0:
3
+ msg = f"Command failed with exit code {result.get('returncode')}:\n{result.get('output')}"
4
+ raise RuntimeError(msg)
5
+ return result
0 commit comments