Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: d740f588315d39f55997f49a53b84fd36023cd96
https://github.com/tribe29/checkmk/commit/d740f588315d39f55997f49a53b84fd36…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-08-27 (Thu, 27 Aug 2020)
Changed paths:
M cmk/utils/type_defs.py
M tests/unit/cmk/utils/test_type_defs.py
Log Message:
-----------
Add Rust-inspired Result type
It is never correct to raise an exception in the check helpers, instead,
the errors are treated like regular data and are simply reported
with the status flag.
The Result class reflects that in the type system.
CMK-5275
Change-Id: Ia1e5ac0b4ea9e457cc917def0d28063026c86b12