Skip to content

Commit fd9cdc6

Browse files
author
bohendo
committed
set check=true on subprocess cmd runner
1 parent 9c52b54 commit fd9cdc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crytic_compile/utils/subprocess.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Utils for running executables across platforms
3+
"""
14
import logging
25
import os
36
from pathlib import Path
@@ -43,7 +46,7 @@ def run(
4346

4447
try:
4548
return subprocess.run(
46-
cmd, executable=subprocess_exe, cwd=subprocess_cwd, env=subprocess_env, **kwargs
49+
cmd, executable=subprocess_exe, cwd=subprocess_cwd, env=subprocess_env, check=True, **kwargs
4750
)
4851
except FileNotFoundError:
4952
LOGGER.error("Could not execute `%s`, is it installed and in PATH?", cmd[0])

0 commit comments

Comments
 (0)