[Catalyst] "or die" replacement?

Matt S Trout dbix-class at trout.me.uk
Thu Mar 16 20:30:05 CET 2006


Steven Hilton wrote:
> On 3/16/06, apv <apv at sedition.com> wrote:
>> And I should have said:
>> On Thursday, March 16, 2006, at 10:56  AM, apv wrote:
>>> My main cat project is dying with codes right now, e.g., "RC_503:
>>> Database cannot be reached," if there is a \bDBI\b in the
>>> $c->error(s) and sending email to the dev (via a config file
>>> address) with the Email plugin.
>> And giving a pretty site formatted error page and providing the
>> error chain if debug is on, otherwise just giving the general
>> http status info: "404: resource not found" etc.
> 
> Be careful of that. A full perl stack trace includes method
> parameters, and that may include sensitive information, like database
> connection information, including a password. You might not want the
> world to see that.

Right, but he did say "if debug is on". Which you wouldn't want to be doing on 
your live site, for performance if nothing else.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list