Werk #20045: cmk CLI: show the error message instead of a traceback
| Component | Core & setup | ||||
| Title | cmk CLI: show the error message instead of a traceback | ||||
| Date | Jul 28, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
General exceptions were re-raised unconditionally.
So the cmk CLI showed a user a Python traceback for every problem.
With this change the --debug option gets honored for all generic exceptions:
- Without it, print the exception (including its type) and exit.
- With it, re-raise and display the full traceback.
The crash report is still written in either case. Its Crash-ID is now part of the message, so that a user is aware of it.