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:
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user