Re: [htmltmpl] warning_on_bad_params
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2004-05-11 22:17:57
|
On Wed, 12 May 2004, Gabor Szabo wrote: > I asked this a couple of days ago with no response. > > I'd really appreciate your feedback. Sorry about that. I meant to reply but got distracted. > When we put the pages online I'd like to be sure they won't crash > because of bad params but I'd like to get some notification about > these bad params. > > How can I do this ? Run with die_on_bad_params on your test server and turn it off in production. > If it cannot be done now, would it be usefull if I tried to send > a patch for a warn_on_bad_params option set to 0 by default ? Hmmmm, maybe. I've been meaning to do some work on the overall state of error messages in HTML::Template, possibly offering optional Exception::Class support. If I did that I think it would be easy to also offer the ability to turn non-critical errors into warnings. But a smaller change addressing just this problem might not be too bad... -sam |