« Return to Thread: Custom error handling

Re: Custom error handling

by Tomas Doran :: Rate this Message:

Reply to Author | View in Thread


On 3 Jul 2009, at 08:33, kakimoto@... wrote:
>
> I can see that a $c->error () is being called in one of my controllers

You mean you're calling $c->error yourself in your own controller code?

> and the Room->end has been called (thanks to my debugging messages
> above) BUT the $c->error doesn't seem to be detected in the Room->end
> that I have. Instead, i see "nothign done" being printed out.

You haven't shown us the code you're putting stuff into $c->error  
with, therefore it's pretty hard to tell how you're doing it wrong.

Try just putting:

die("An error")

into your controller code, and you should see that captured in $c-
 >error when it gets to your end action

Cheers
t0m


_______________________________________________
List: Catalyst@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

 « Return to Thread: Custom error handling