Make die() exit unconditionally. Clean up some more redundant code. Revert unfixable error to use die() rather than warn() and _Exit().

This commit is contained in:
Mike Brady
2026-07-12 17:07:11 +01:00
parent 68a78e82f3
commit 2ba3b1163a
5 changed files with 8 additions and 43 deletions
+1 -2
View File
@@ -212,11 +212,10 @@ void handle_unfixable_error(int errorCode) {
if (config.cmd_unfixable) {
command_execute(config.cmd_unfixable, messageString, 1);
} else {
warn("An unrecoverable error, \"output_device_error_%d\", has been "
die("An unrecoverable error, \"output_device_error_%d\", has been "
"detected. Doing an emergency exit, as no run_this_if_an_unfixable_error_is_detected "
"program.",
errorCode);
_Exit(EXIT_FAILURE);
}
}
}