diff options
author | bbaetz%acm.org <> | 2003-09-14 15:04:38 +0200 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-09-14 15:04:38 +0200 |
commit | 4e7e3310242bd5264b5f48e4bf3c387e59288b85 (patch) | |
tree | df9878685199a51358c148c1531d51116f32f650 /request.cgi | |
parent | 95791d4b9edc26cd55483e71970d9f743f12f094 (diff) | |
download | bugzilla-4e7e3310242bd5264b5f48e4bf3c387e59288b85.tar.gz bugzilla-4e7e3310242bd5264b5f48e4bf3c387e59288b85.tar.xz |
Bug 208699 - Move Throw{Code,Template}Error into Error.pm
r,a=justdave
Diffstat (limited to 'request.cgi')
-rwxr-xr-x | request.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/request.cgi b/request.cgi index ae137959d..3672e0449 100755 --- a/request.cgi +++ b/request.cgi @@ -165,10 +165,10 @@ sub queue { push(@criteria, "bugs.component_id = $component_id"); push(@excluded_columns, 'component') unless $::FORM{'do_union'}; } - else { ThrowCodeError("unknown_component", { %::FORM }) } + else { ThrowCodeError("unknown_component", { component => $::FORM{component} }) } } } - else { ThrowCodeError("unknown_product", { %::FORM }) } + else { ThrowCodeError("unknown_product", { product => $::FORM{product} }) } } # Filter results by flag types. @@ -281,7 +281,8 @@ sub validateStatus { return if !defined($::FORM{'status'}); grep($::FORM{'status'} eq $_, qw(? +- + - all)) - || ThrowCodeError("flag_status_invalid", { status => $::FORM{'status'} }); + || ThrowCodeError("flag_status_invalid", + { status => $::FORM{'status'} }); } sub validateGroup { |