@@ -134,6 +134,11 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
'body' => <<<EOS
\$errors = \$this->_getParam('error_handler');
+if (!\$errors) {
+ \$this->view->message = 'You have reached the error page';
+ return;
+}
+
switch (\$errors->type) {
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER: