summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-26 15:13:40 +0200
committergerv%gerv.net <>2002-04-26 15:13:40 +0200
commit3321a21580047a12832f47e16220c2c3ee0c7d1b (patch)
treedb91149b1a1d43b2e2e082aa4d03a701125d3b90 /post_bug.cgi
parentb236802ccb76b57369aa650bf45aba8dbf9d3ac9 (diff)
downloadbugzilla-3321a21580047a12832f47e16220c2c3ee0c7d1b.tar.gz
bugzilla-3321a21580047a12832f47e16220c2c3ee0c7d1b.tar.xz
Bug 140124 - PuntTryAgain must die. Patch by gerv, 2xr=myk.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index b727396d0..143492130 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -220,15 +220,15 @@ foreach my $b (grep(/^bit-\d*$/, keys %::FORM)) {
if ($::FORM{$b}) {
my $v = substr($b, 4);
$v =~ /^(\d+)$/
- || PuntTryAgain("One of the group bits submitted was invalid.");
+ || ThrowCodeError("One of the group bits submitted was invalid.",
+ undef, "abort");
if (!GroupIsActive($v)) {
# Prevent the user from adding the bug to an inactive group.
# Should only happen if there is a bug in Bugzilla or the user
# hacked the "enter bug" form since otherwise the UI
# for adding the bug to the group won't appear on that form.
- PuntTryAgain("You can't add this bug to the inactive group " .
- "identified by the bit '$v'. This shouldn't happen, " .
- "so it may indicate a bug in Bugzilla.");
+ ThrowCodeError("Attempted to add bug to an inactive group, " .
+ "identified by the bit '$v'.", undef, "abort");
}
$sql .= " + $v"; # Carefully written so that the math is
# done by MySQL, which can handle 64-bit math,