summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error.pm
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-04-13 16:46:30 +0200
committerDylan Hardison <dylan@mozilla.com>2016-04-13 16:46:30 +0200
commit33f61556746e1729746342d802ca7ea9cea18caf (patch)
tree95e4cb3791be0cd9e09187cbbfbdd3cdc9feb5ff /Bugzilla/Error.pm
parentcc0c32bcb0e9f1b6c0b0157f8480d69047740f1e (diff)
downloadbugzilla-33f61556746e1729746342d802ca7ea9cea18caf.tar.gz
bugzilla-33f61556746e1729746342d802ca7ea9cea18caf.tar.xz
Bug 1195736 - intermittent internal error: "file error - nav_link: not found" (also manifests as fields_lhs: not found)
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r--Bugzilla/Error.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index fa898fba4..927745201 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -99,8 +99,13 @@ sub _throw_error {
# and calling $template->process over and over for those errors
# is too slow. So instead, we just "die" with a dump of the arguments.
if (Bugzilla->error_mode != ERROR_MODE_TEST) {
- $template->process($name, $vars, \$message)
- || ThrowTemplateError($template->error());
+ if (Bugzilla->template->in_process) {
+ $message = "error inside Bugzilla->template->process: $error";
+ }
+ else {
+ $template->process($name, $vars, \$message)
+ || ThrowTemplateError($template->error());
+ }
}
# Let's call the hook first, so that extensions can override