Trigger on_shutdown in the event of a fatal error.
This commit is contained in:
1 parent
bfa0baf51e
commit
b48e77a4b3
1 file changed
+4
-1
+4
-1
@@ -485,7 +485,10 @@ sub err ## no critic qw(Subroutines::ProhibitBuiltinHomonyms)
|
||||
}
|
||||
|
||||
# If it's a fatal error, exit the program.
|
||||
if ($fatal) { exit; }
|
||||
if ($fatal) {
|
||||
API::Std::event_run('on_shutdown');
|
||||
exit;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user