Thanks Shirley, it's worked perfectly! David
________________________________ De: J. Shirley <[email protected]> Para: The elegant MVC web framework <[email protected]> Enviado: jue,18 marzo, 2010 19:11 Asunto: Re: [Catalyst] Managing errors - cut execution flow. On Thu, Mar 18, 2010 at 10:03 AM, David <[email protected]> wrote: > Hi, > > > I am not sure how to manage errors in my Catalyst application. When I detect > an error, I forward the error to my Error View, but the execution doesn't > stop. > > When my application was not in Catalyst, I used "exit 1;" once I had done > forward to my Error View, but this doesn't work in my Catalyst application. > > Is there a politely way in Catalyst of cutting the execution process when I > find an error and forward this error to my Error View? > > David > > I believe you will be all set if you simply use $c->detach rather than $c->forward. -J _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
