Pass exception on render404() method of view listener
authorEvan Coury <me@evancoury.com>
Thu, 17 Nov 2011 23:05:57 +0000 (16:05 -0700)
committerEvan Coury <me@evancoury.com>
Thu, 17 Nov 2011 23:05:57 +0000 (16:05 -0700)
modules/Application/src/Application/View/Listener.php

index f909dcd..275736d 100644 (file)
@@ -169,7 +169,11 @@ class Listener implements ListenerAggregate
             return;
         }
 
-        $vars = array('message' => 'Page not found.');
+        $vars = array(
+            'message'            => 'Page not found.',
+            'exception'          => $e->getParam('exception'),
+            'display_exceptions' => $this->displayExceptions(),
+        );
 
         $content = $this->view->render('pages/404.phtml', $vars);