- if ($@ || ! $template) {
- error sprintf(gettext("nonexistant template %s.tmpl"), $params{template});
+ if ($@) {
+ error gettext("failed to process template:")." $@";
+ }
+ if (! $template) {
+ error sprintf(gettext("template %s not found"), $params{template}.".tmpl");