zendframework/ZendSkeletonApplication — pull request #7 by Ocramius (2011-11-23 22:00:11+00:00)
Title: Error pages exceptions fixes

First of all I thought it was better to have error/404.phtml instead of pages/404.phtml as a 404 error view script.
If I got it somehow wrong I'd love to know why it was pages/404.phtml.

Then I was inspecting https://github.com/zendframework/ZendSkeletonApplication/issues/5 , and added some checks to avoid working with 'exception' parameters that are not objects instance of Exception. You can see these fixes directly in the error/404.phtml and error/index.phtml scripts (which are almost the same.... we should probably remove one of them in the future).

Also attached the 'exception' and 'display_exceptions' to the vars passed to the view renderer. Some errors were just not passed to the view before, which made it difficult to track for example Zend\Di\Exception\ClassNotFoundException.

Also added parameter display_exceptions to the module config, default to "false". Makes more evident that it should be turned on in development environment.