zendframework/ZendSkeletonApplication — pull request #8 by Ocramius (2011-11-23 23:12:49+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 added parameter display_exceptions to the module config, default to "false". Makes more evident that it should be turned on in development environment.