[FrameworkBundle] changed the ExceptionListener to re-thrown an exception when there is an exception thrown during processing

This commit is contained in:
Fabien Potencier 2010-08-30 08:32:50 +02:00
parent 6b5c3d05bd
commit 155b120d92

View File

@ -82,7 +82,8 @@ class ExceptionListener
$this->logger->err(sprintf('Exception thrown when handling an exception (%s: %s)', get_class($e), $e->getMessage()));
}
return false;
// re-throw the exception as this is a catch-all
throw new \RuntimeException(sprintf('Exception thrown when handling an exception.', 0, $e));
}
$event->setReturnValue($response);