mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
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);
|
trigger_error($e);
|
||||||
$previousHandler = set_exception_handler(function () {});
|
$previousHandler = set_exception_handler(function () {});
|
||||||
restore_error_handler();
|
restore_error_handler();
|
||||||
call_user_func($previousHandler, $e);
|
if ($previousHandler !== null) {
|
||||||
die();
|
call_user_func($previousHandler, $e);
|
||||||
|
die();
|
||||||
|
} else {
|
||||||
|
die($e->getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user