Werk #20045 · Jul 28, 26
cmk CLI: show the error message instead of a traceback
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Core
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p11All Editions