[Templates] TRY / CATCH under mod_perl

[prev] [thread] [next] [Date index for 2004/08/05]

From: Denis Banovic
Subject: [Templates] TRY / CATCH under mod_perl
Date: 10:12 on 05 Aug 2004
Hi everyone,

I'm getting a strange behaviour since our serverupgrade Apache 2 /
mod_perl 2 with latest TT

I have an die handler in my script which catches errors.

$main::SIG{__DIE__}=3D\&WebApp::Output::die; ###=20

How can I recognise, that this DIE signal a TRY/CATCH is.
Are there any flags that TT sends when TRY goes wrong so I could
recognize that and ignore this die signal?
Thanks

Denis

Here is a piece of code that makes problems

<% TRY %>
<% INCLUDE "${menu}.htm" %>
<% CATCH %>
<% INCLUDE "hotel.htm" %>
<% END %>


Error Message:

WebApp error occured: file error - .htm: not found

Time: Thu Aug  5 09:56:44 2004 GMT
File:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Template/Context.
pm
Line: 492
Package: Template::Context
Callstack:=20
URL: http://www.myserver.at/





_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] TRY / CATCH under mod_perl
Denis Banovic 10:12 on 05 Aug 2004

Re: [Templates] TRY / CATCH under mod_perl
Perrin Harkins 16:00 on 05 Aug 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52