can override the 500 template directly inside the project, but not if the template is in a module

16 views
Skip to first unread message

Marcel Klemenz

unread,
Jul 12, 2012, 1:45:27 PM7/12/12
to pla...@googlegroups.com

I try to override the 500 error response template with the one form my ErrorMailer module, But play seem to ignore my template if it is inside a module.
Everything works fine, if I just put my template directly inside the project, but I want it in a module.

I tried to put it in:
{modulepath}/app/views/tags/500.html    -> normal path for the errortemplate
{modulepath}/app/views/{modulename}}/tags/500.htm    -> play made this directory for me
{modulepath}/app/views/errors/500.html   -> this file routes to the 500.html in tags on dev and prints oops on prod

none of this worked.

Google gave me the following:
https://groups.google.com/forum/?fromgroups#!topic/play-framework/umHB0aDE7cw
It seems there was an error which ignores them on prod.
For me the problem occurs on dev.

Any suggestions? 
Reply all
Reply to author
Forward
0 new messages