From 03b964b2afb0c72dd54688e08a6dda47a1bdfee9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 6 Sep 2007 10:38:58 +0000 Subject: [PATCH] =?utf8?q?Wenn=20das=20Parsen=20eines=20Templates=20fehlsc?= =?utf8?q?hl=C3=A4gt,=20dann=20die=20dazugeh=C3=B6rige=20Fehlermeldung=20a?= =?utf8?q?uf=20STDERR=20ausgeben,=20damit=20sie=20analysiert=20werden=20ka?= =?utf8?q?nn.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index b32fbd2b0..196d828cd 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -591,7 +591,9 @@ sub parse_html_template2 { map { $additional_params->{$_} ||= $self->{$_} } keys %{ $self }; my $output; - $template->process($file, $additional_params, \$output); + if (!$template->process($file, $additional_params, \$output)) { + print STDERR $template->error(); + } $output = $main::locale->{iconv}->convert($output) if ($main::locale); -- 2.20.1