Merge pull request #120 from lyrixx/exception

Do not hide exception if the $app['debug'] == true
This commit is contained in:
Klaus Silveira
2012-08-15 10:39:18 -07:00

View File

@@ -53,6 +53,9 @@ class Application extends SilexApplication
// Handle errors
$this->error(function (\Exception $e, $code) use ($app) {
if ($app['debug']) {
return;
}
return $app['twig']->render('error.twig', array(
'message' => $e->getMessage(),
));