I'm playing around with error pages per status code and am having troubles rendering views.
I'm using the normal URLMappings strategy for this and using an errors controller to do additional processing and render the view (I'm starting with 500 but will add more obviously):
"500"(controller: 'error', action: 'internalServerError')
In my controller I'm just rendering the views associated with the error:
def internalServerError() {
render view: '/error/internalServerError'
}
The view isn't anything special, just contains a simple message and such. When I plant something in my code that causes an exception, my controller action above does get called but for some reason render doesn't cause the view to render. It basically just eats the exception and from the user perspective it seems like nothing happened.
I've been tinkering with different rendering options and returns but the same thing always happens. Also worth noting that changing URLMappings to:
"500"(view:'/error/internalServerError')
causes the same thing to happen. Am I missing something here?