summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-08-16 08:01:20 +0200
committergerv%gerv.net <>2002-08-16 08:01:20 +0200
commite8584108d410cc2cf63124d88d640aff6821b975 (patch)
treeefea1a1466fa2fd5987e87c90134274647882e55 /bug_form.pl
parentde177c6bdf5d413b4fdb860970e422fadc943669 (diff)
downloadbugzilla-e8584108d410cc2cf63124d88d640aff6821b975.tar.gz
bugzilla-e8584108d410cc2cf63124d88d640aff6821b975.tar.xz
Bug 162066 - Fix callers of ThrowCodeError to use messages in code-error.html.tmpl. Patch by gerv; r=bbaetz.
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bug_form.pl b/bug_form.pl
index b04208bdf..c4d623e12 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -96,7 +96,8 @@ sub show_bug {
# The caller is meant to have checked this. Abort here so that
# we don't get obscure SQL errors, below
if (!MoreSQLData()) {
- ThrowCodeError("No data when fetching bug $id");
+ $vars->{'bug_id'} = $id;
+ ThrowCodeError("no_bug_data");
}
my $value;