Werk #11980: check_mail: better error message if email could not be copied

Component Checks & agents
Title check_mail: better error message if email could not be copied
Date Mar 3, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

If a mail could not be copied the resulting error was a raw Exception with the title: "Response from server: SERVER". This werk changes the Exception type to RuntimeError by reusing the function "verified_result".

To the list of all Werks