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/ _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/