diff --git a/index.php b/index.php index 3ea09fb8b..5806f3990 100644 --- a/index.php +++ b/index.php @@ -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; }