I think I found out what's going on. ViewMessageBodyWriter is throwing a 
WebApplicationException that contains an entity (The "template error" HTML 
code). The logic in ServerRuntime (around line 588 in v1.0.3) would check 
that if the exception is WebApplicationException and that it contains an 
entity, then it will just return the contained response instead of passing 
the exception over for mapping. I will open an issue and ask for a feature 
for more control of the exception behaviour for view rendering.

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to