mirror of
https://github.com/getgrav/grav.git
synced 2026-02-24 23:51:31 +01:00
Merge index exceptions with same handling
This commit is contained in:
committed by
Matias Griese
parent
7cafeb2870
commit
cad8510dae
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user