mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Pass the exception to the onFatalException() event
This commit is contained in:
parent
dbb9725567
commit
d42786484f
|
|
@ -8,6 +8,7 @@ if (!is_file($autoload)) {
|
|||
}
|
||||
|
||||
use Grav\Common\Grav;
|
||||
use RocketTheme\Toolbox\Event\Event;
|
||||
|
||||
// Register the auto-loader.
|
||||
$loader = require_once $autoload;
|
||||
|
|
@ -36,6 +37,6 @@ $grav = Grav::instance(
|
|||
try {
|
||||
$grav->process();
|
||||
} catch (\Exception $e) {
|
||||
$grav->fireEvent('onFatalException');
|
||||
$grav->fireEvent('onFatalException', new Event(['exception' => $e]));
|
||||
throw $e;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user