Don't catch ProgrammingError when the superclass Exception has already been caught
refs #9003
This commit is contained in:
parent
159f4eaf90
commit
7ef7325335
|
@ -171,9 +171,6 @@ class DashboardController extends ActionController
|
|||
$action->view->config = $dashboardConfig;
|
||||
$action->render('error');
|
||||
return false;
|
||||
} catch (ProgrammingError $e) {
|
||||
Notification::error($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
@ -211,9 +208,6 @@ class DashboardController extends ActionController
|
|||
$action->view->config = $dashboardConfig;
|
||||
$action->render('error');
|
||||
return false;
|
||||
} catch (ProgrammingError $e) {
|
||||
Notification::error($e->getMessage());
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue