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 a02332d commit d9fbfdeCopy full SHA for d9fbfde
src/cfengine_cli/main.py
@@ -3,6 +3,7 @@
3
import sys
4
import traceback
5
import pathlib
6
+import subprocess
7
8
from cf_remote import log
9
from cfengine_cli.version import cfengine_cli_version_string
@@ -144,7 +145,9 @@ def main():
144
145
except UserError as e:
146
print(str(e))
147
sys.exit(-1)
- # AssertionError and CFBSProgrammerError are not expected, print extra info:
148
+ # exceptions below are not expected, print extra info:
149
+ except subprocess.CalledProcessError as e:
150
+ print(f"subprocess command failed: {' '.join(e.cmd)}")
151
except AssertionError as e:
152
tb = traceback.extract_tb(e.__traceback__)
153
frame = tb[-1]
0 commit comments