Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

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
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p11
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

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.

To the list of all Werks