Skip to content

Commit

Permalink
Avoid wrapping exception messages (hide source message)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud Fabre committed Jan 17, 2015
1 parent 9460991 commit 879bac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elements/ErrorHandlingLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __invoke(Request $request)
catch (\Exception $ex) {
error_log($ex);

throw new HttpException(500, 'Caught exception', $ex);
throw new HttpException(500, $ex->getMessage());
}
}
}

0 comments on commit 879bac9

Please sign in to comment.