Better template diagnostics on failure. It now also includes the template URL, and templateId

in both the onscreen and logged output.
This commit is contained in:
Colin Kuskie 2009-06-08 16:53:53 +00:00
parent 4252b359dc
commit 8a683d1aef
9 changed files with 100 additions and 73 deletions

View file

@ -16,6 +16,7 @@ package WebGUI::Asset::Template::SomeTemplateType;
use strict;
use base 'WebGUI::Asset::Template::Parser';
use WebGUI::Exception;
#-------------------------------------------------------------------
@ -52,7 +53,12 @@ sub process {
my $self = shift;
my $template = shift;
my $vars = $self->addSessionVars(shift);
...
eval {
}
if ($@) {
WebGUI::Error::Template->throw( error => $@ );
}
}