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:
parent
4252b359dc
commit
8a683d1aef
9 changed files with 100 additions and 73 deletions
|
|
@ -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 => $@ );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue