summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Util.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index b5e99bf69..48ac06502 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -593,8 +593,10 @@ sub get_text {
$vars ||= {};
$vars->{'message'} = $name;
my $message;
- $template->process('global/message.txt.tmpl', $vars, \$message)
- || ThrowTemplateError($template->error());
+ if (!$template->process('global/message.txt.tmpl', $vars, \$message)) {
+ require Bugzilla::Error;
+ Bugzilla::Error::ThrowTemplateError($template->error());
+ }
# Remove the indenting that exists in messages.html.tmpl.
$message =~ s/^ //gm;
return $message;