Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/1.1.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Lord committed May 4, 2017
2 parents 6f05756 + 4a54c24 commit f4c91e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ public function report(Exception $exception)
public function render($request, Exception $exception)
{
if(env('APP_DEBUG', false)==false) {
if (!$this->isHttpException($exception)) $exception = new HttpException(500);
// for any exception other than HttpException, AuthenticationException, and ValidationException,
// return an HttpException to display an error page
if (!($exception instanceof HttpException)
&& !($exception instanceof AuthenticationException)
&& !($exception instanceof ValidationException)) {
$exception = new HttpException(500);
}
}

return parent::render($request, $exception);
Expand Down

0 comments on commit f4c91e2

Please sign in to comment.