mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Flip dem tables on E_COMPILE_ERROR
Summary: We currently show the table flipping error page only for E_ERROR and E_PARSE, but should for E_COMPILE_ERROR as well. Test Plan: Added a method with a bad signature to a class. Loaded page. Got a helpful message instead of a blank page. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D3791
This commit is contained in:
parent
31ac1cbf6e
commit
ddde99f80c
1 changed files with 7 additions and 2 deletions
|
@ -327,8 +327,13 @@ function phabricator_shutdown() {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($event['type'] != E_ERROR && $event['type'] != E_PARSE) {
|
||||
return;
|
||||
switch ($event['type']) {
|
||||
case E_ERROR:
|
||||
case E_PARSE:
|
||||
case E_COMPILE_ERROR:
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
$msg = ">>> UNRECOVERABLE FATAL ERROR <<<\n\n";
|
||||
|
|
Loading…
Reference in a new issue