> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Daniel Westermann-Clark > Sent: July 15, 2006 9:58 PM > To: [email protected] > Subject: [Catalyst] C::P::StackTrace eats template exceptions? > > Hi, > > I upgraded to Catalyst::Plugin::StackTrace 0.05 earlier > tonight and ran into a slight problem with a TT template I > was working on. > > The template uses Template::Plugin::File to display an > (optional) set of images; as mentioned in its documentation, > it throws a Template::Exception when the file does not exist. > In the template: > > [% TRY %] > [% USE File(c.path_to('root', 'static', 'images', > 'nonexistent.jpg')) %] > <img src="[% c.uri_for('/static/images/nonexistent.jpg') > %]" /> [% CATCH %] > No image... > [% END %] > > Using Catalyst::Plugin::StackTrace 0.04 this would display > "No image...". With 0.05 this displays the img tag.
Thanks, I'll take a look at this tomorrow > -- > Daniel Westermann-Clark > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.rawmode.org/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.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
