From 80dc94e6c6b4cd2742cc059c8e95dca8fb6717f6 Mon Sep 17 00:00:00 2001 From: Evan Coury Date: Thu, 17 Nov 2011 16:05:57 -0700 Subject: [PATCH] Pass exception on render404() method of view listener --- modules/Application/src/Application/View/Listener.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/Application/src/Application/View/Listener.php b/modules/Application/src/Application/View/Listener.php index f909dcd..275736d 100644 --- a/modules/Application/src/Application/View/Listener.php +++ b/modules/Application/src/Application/View/Listener.php @@ -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); -- 1.7.10.4