mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-18 03:30:55 +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
|
// Handle errors
|
||||||
$this->error(function (\Exception $e, $code) use ($app) {
|
$this->error(function (\Exception $e, $code) use ($app) {
|
||||||
|
if ($app['debug']) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
return $app['twig']->render('error.twig', array(
|
return $app['twig']->render('error.twig', array(
|
||||||
'message' => $e->getMessage(),
|
'message' => $e->getMessage(),
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user