Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion framework/base/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected function handleFallbackExceptionMessage($exception, $previousException
}
$msg .= "\n\$_SERVER = " . VarDumper::export($_SERVER);
} else {
echo 'An internal server error occurred.';
echo $this->fallbackExceptionMessage($exception);
}
error_log($msg);
if (defined('HHVM_VERSION')) {
Expand All @@ -197,6 +197,11 @@ protected function handleFallbackExceptionMessage($exception, $previousException
exit(1);
}

protected function fallbackExceptionMessage($exception)
Comment thread
mspirkov marked this conversation as resolved.
Resolved
{
return 'An internal server error occurred.';
}

/**
* Handles HHVM execution errors such as warnings and notices.
*
Expand Down
Loading