mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Merge pull request #120 from lyrixx/exception
Do not hide exception if the $app['debug'] == true
This commit is contained in:
@@ -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(),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user