Skip to content

Commit

Permalink
[HttpKernel] fixed previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 13, 2011
1 parent 0758033 commit 36d60a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php
Expand Up @@ -32,7 +32,7 @@ class ExceptionHandler
*
* @return The registered exception handler
*/
static public function register($level = null)
static public function register()
{
$handler = new static();

Expand All @@ -52,7 +52,9 @@ public function handle(\Exception $exception)
{
$exception = FlattenException::create($exception);

return new Response($this->decorate($exception, $this->getContent($exception)), 500);
$response = new Response($this->decorate($exception, $this->getContent($exception)), 500);

$response->send();
}

private function getContent($exception)
Expand Down

0 comments on commit 36d60a4

Please sign in to comment.