[Templates] redirect the fatal error to browser
Ken Perl
kenperl@gmail.com
Thu, 25 May 2006 14:45:31 +0800
when some syntax errors in the template html file, I can't see what's
happened. If I go to the command line the to re-create the problem
then I can see the error like this,
file error - parse error - search.xhtml line 71: unexpected end of directiv=
e
[% FOREACH d =3D [ '1','2','three' %]
so I know a ']' is missed, for other errors I may use CGI::Carp
qw(fatalsToBrowser); to catch the error and see it from the browser.
My question is how can I catch template error like above to browser?
--=20
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'