Permalink
Browse files

Making sure the response is rendered.

The exception handler breaks us out of the traditional Laravel rendering flow so `laravel/laravel.php` is no longer executed and `Response::render()` is no longer called. This fixes that and places the `render()` method into the error handler.
  • Loading branch information...
1 parent d52b034 commit e8ed57a2308f2fccead893bad3c35ca0398c8996 @markhuot committed Aug 14, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 laravel/error.php
View
@@ -39,9 +39,9 @@ public static function exception($exception, $trace = true)
// Using events gives the developer more freedom.
else
{
- $response = Event::first('500');
-
- return Response::prepare($response)->send();
+ $response = Response::prepare(Event::first('500'));
+ $response->render();
+ return $response->send();
}
exit(1);

0 comments on commit e8ed57a

Please sign in to comment.