Merge index exceptions with same handling

This commit is contained in:
Xaver Maierhofer
2022-02-15 05:33:21 +01:00
committed by Matias Griese
parent 7cafeb2870
commit cad8510dae

View File

@@ -45,10 +45,7 @@ $grav = Grav::instance(array('loader' => $loader));
// Process the page
try {
$grav->process();
} catch (\Error $e) {
$grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
throw $e;
} catch (\Exception $e) {
} catch (\Error|\Exception $e) {
$grav->fireEvent('onFatalException', new Event(array('exception' => $e)));
throw $e;
}