Bug 208699 - Move Throw{Code,Template}Error into Error.pm

r,a=justdave


git-svn-id: svn://10.0.0.236/trunk@146857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bbaetz%acm.org
2003-09-14 06:05:23 +00:00
parent 0cfd0832bb
commit 7d7d7e1532
16 changed files with 168 additions and 180 deletions

View File

@@ -930,7 +930,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)) {
&::ThrowCodeError("invalid_field_name", {field => $f});
ThrowCodeError("invalid_field_name", {field => $f});
}
# This is either from the internal chart (in which case we
@@ -964,9 +964,10 @@ sub init {
}
else {
# This field and this type don't work together.
$::vars->{'field'} = $params->param("field$chart-$row-$col");
$::vars->{'type'} = $params->param("type$chart-$row-$col");
&::ThrowCodeError("field_type_mismatch");
ThrowCodeError("field_type_mismatch",
{ field => $params->param("field$chart-$row-$col"),
type => $params->param("type$chart-$row-$col"),
});
}
}
if (@orlist) {