Skip to content

Commit

Permalink
Use \Illuminate\Http\Response::withException (#13712)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored and taylorotwell committed May 26, 2016
1 parent 2a0e4c3 commit c77dec9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ protected function toIlluminateResponse($response, Exception $e)
{
$response = new Response($response->getContent(), $response->getStatusCode(), $response->headers->all());

$response->exception = $e;

return $response;
return $response->withException($e);
}

/**
Expand Down

0 comments on commit c77dec9

Please sign in to comment.