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(), ));