From 2f437193de05f387af9021a43e3743a3b86a4da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Thu, 26 Jul 2012 17:35:35 +0200 Subject: [PATCH] Do not hide exception if the $app['debug'] == true --- src/GitList/Application.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GitList/Application.php b/src/GitList/Application.php index 92983e9..dd5f3a4 100644 --- a/src/GitList/Application.php +++ b/src/GitList/Application.php @@ -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(), ));