Skip to content

Commit

Permalink
slight formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 25, 2017
1 parent a99e173 commit 3cb7b0f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,12 @@ protected function prepareResponse($request, Exception $e)
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}

if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
$e = $this->isHttpException($e)
? $e : new HttpException(500, $e->getMessage());

return $this->toIlluminateResponse($this->renderHttpException($e), $e);
return $this->toIlluminateResponse(
$this->renderHttpException($e), $e
);
}

/**
Expand Down

0 comments on commit 3cb7b0f

Please sign in to comment.