Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/cfengine_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import traceback
import pathlib
import subprocess

from cf_remote import log
from cfengine_cli.version import cfengine_cli_version_string
Expand Down Expand Up @@ -144,7 +145,9 @@ def main():
except UserError as e:
print(str(e))
sys.exit(-1)
# AssertionError and CFBSProgrammerError are not expected, print extra info:
# Exceptions below are not expected, print extra info:
except subprocess.CalledProcessError as e:
print(f"subprocess command failed: {' '.join(e.cmd)}")
except AssertionError as e:
tb = traceback.extract_tb(e.__traceback__)
frame = tb[-1]
Expand Down