Skip to content
Open
Changes from all 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a dock block missing here.
It's worth adding the @param annotation for $exception.

{
return 'An internal server error occurred.';
}

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