[Catalyst] [ANNOUNCE] Catalyst::Plugin::StackTrace

Andreas Marienborg omega at palle.net
Tue Jan 3 09:59:10 CET 2006


On 2. jan. 2006, at 18.08, Michele Beltrame wrote:

> Hello!
>
>> I've pushed the first version of the StackTrace plugin to CPAN.
>
> Great thing (I'm using v 0.02), thank you very much. However, I'm  
> encountering a problem.
>
> Even without this plugin, when there's an exception, the "end"  
> method (which forwards to the View::TT) is executed anyway, so what  
> I get (without the plugin) is i.e.:
>
> -----
> Caught exception "Alone at /usr/lib/perl5/vendor_perl/5.8.6/CGI/ 
> Carp.pm line 314."
>
> Couldn't render template "file error - downloads/elist: not found"
> -----
>
> When using the StackTrace plugin, the code shown is that of the  
> last exception, that is to say the "Couldn't render template....".  
> Of course, Frankly, I don't know why this last exception occurs (it  
> does only where there's been another one before).
>


it happens because the TT view tries to guess a template for you, if  
you havent set one in the stash. If that file doesnt exist, you get  
that exception.


andreas



More information about the Catalyst mailing list