[Catalyst] How do I run finalize_error only if $c->debug is false?
Matt S Trout
dbix-class at trout.me.uk
Wed Aug 22 08:16:33 GMT 2007
On Tue, Aug 21, 2007 at 09:49:37PM -0400, Barry Hoggard wrote:
> I would like the regular error page with info when I'm running under
> debug. I have a finalize_error method set up similar to the one from
> the mailing list archives, but I don't understand yet the magic of
> return vs. next() and what will happen if I want to skip my version
> under debug.
my $c = shift;
if ($c->debug) {
return $c->NEXT::finalize_error(@_);
}
<rest of your custom finalize_error here>
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/
More information about the Catalyst
mailing list