IcingaObject: die when there was no error handler
This commit is contained in:
parent
91dde44441
commit
828a4a709b
|
@ -224,8 +224,12 @@ abstract class IcingaObject extends DbObject
|
|||
trigger_error($e);
|
||||
$previousHandler = set_exception_handler(function () {});
|
||||
restore_error_handler();
|
||||
call_user_func($previousHandler, $e);
|
||||
die();
|
||||
if ($previousHandler !== null) {
|
||||
call_user_func($previousHandler, $e);
|
||||
die();
|
||||
} else {
|
||||
die($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue