From a671f4d81dcf52c9b8adc4ed0878e6a0d49877d1 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Sun, 16 Apr 2017 20:46:51 +0700 Subject: [PATCH] Improved error page --- src/B8Framework/Controller.php | 2 +- src/PHPCensor/View/exception.phtml | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/B8Framework/Controller.php b/src/B8Framework/Controller.php index ac9e2171..03bbf47e 100644 --- a/src/B8Framework/Controller.php +++ b/src/B8Framework/Controller.php @@ -39,7 +39,7 @@ abstract class Controller public function __construct(Config $config, Request $request, Response $response) { - $this->config = $config; + $this->config = $config; $this->request = $request; $this->response = $response; } diff --git a/src/PHPCensor/View/exception.phtml b/src/PHPCensor/View/exception.phtml index 74f97fd0..dddfdd01 100644 --- a/src/PHPCensor/View/exception.phtml +++ b/src/PHPCensor/View/exception.phtml @@ -3,7 +3,15 @@

Sorry, there was a problem

+
- getMessage(); ?> + getMessage(); ?>
+ File: getFile(); ?>
+ Line: getLine(); ?>
+
+            getTraceAsString(); ?>
+        
\ No newline at end of file