Updated ZF2 submodule to latest master, show exceptions on 404 error
[zf2.biz/galerie.git] / modules / Application / src / Application / View / Listener.php
index 8adf746..f909dcd 100644 (file)
@@ -192,7 +192,9 @@ class Listener implements ListenerAggregate
             case Application::ERROR_CONTROLLER_NOT_FOUND:
             case Application::ERROR_CONTROLLER_INVALID:
                 $vars = array(
-                    'message' => 'Page not found.',
+                    'message'            => 'Page not found.',
+                    'exception'          => $e->getParam('exception'),
+                    'display_exceptions' => $this->displayExceptions(),
                 );
                 $response->setStatusCode(404);
                 break;