On Fri, 11 Jul 2014, Charlie Brady wrote:
> On Fri, 11 Jul 2014, sri wrote:
>
> > If only there was debug information... something like log messages... we
> > could show those at the bottom of the 404 page!
>
> I don't know what you are getting at.
Ah, now I do. The debug log shows me:
[debug] POST "/register".
[debug] Routing to a callback.
[debug] Template "redirect_activate.html.ep" not found.
So instead of:
None of these routes could generate a response for your POST request for
"/register", maybe you need to add a new one?
it could say:
None of these routes could generate a response for your POST request for
"/register"; either a matching route was found and could not generate a
response, or you need to add a new one?
... or some state could be saved in stash, and the 404 template could be
more explicit about the problem - that a route was found, but it failed to
generate a response.
At any rate, I know what my error was:
...
$self->render;
} => 'redirect_activate';
...
with no matching template.
Thanks for the hint.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.