@@ -48,7 +48,9 @@ |
||
| 48 | 48 | |
| 49 | 49 | // Error handler |
| 50 | 50 | $app->error(function(\Exception $e, $code) use ($app) { |
| 51 | - if($app['debug']) return; |
|
| 51 | + if($app['debug']) { |
|
| 52 | + return; |
|
| 53 | + } |
|
| 52 | 54 | |
| 53 | 55 | switch($code) { |
| 54 | 56 | case 404: |