summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-10-06 20:52:28 +0200
committergerv%gerv.net <>2002-10-06 20:52:28 +0200
commitb8851cdd5c15e0d21543d9fe08159b9ced8c950f (patch)
treece1c674c28c6491d3a86e3afb182963737666e2d /Bugzilla
parentf50efb95e1c7462699f1179d0a62b1ee7118e67e (diff)
downloadbugzilla-b8851cdd5c15e0d21543d9fe08159b9ced8c950f.tar.gz
bugzilla-b8851cdd5c15e0d21543d9fe08159b9ced8c950f.tar.xz
Bug 163114 - Templatise all calls to DisplayError. Patch D (the last one). Patch by gerv; r=burnus.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 6d11c0739..db97af3f2 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -746,12 +746,7 @@ sub init {
# chart -1 is generated by other code above, not from the user-
# submitted form, so we'll blindly accept any values in chart -1
if ((!$chartfields{$f}) && ($chart != -1)) {
- my $errstr = "Can't use $f as a field name. " .
- "If you think you're getting this in error, please copy the " .
- "entire URL out of the address bar at the top of your browser " .
- "window and email it to <109679\@bugzilla.org>";
- die "Internal error: $errstr" if $chart < 0;
- return &::DisplayError($errstr);
+ ThrowCodeError("invalid_field_name", {field => $f});
}
# This is either from the internal chart (in which case we