Pass the exception to the onFatalException() event

This commit is contained in:
Andy Miller
2016-06-11 22:27:34 +01:00
parent dbb9725567
commit d42786484f

View File

@@ -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;
}