Bug 283183 : check_multi in Config.pm returns a bad error message if the check fails

iPtch by Frederic Buclin <LpSolit@gmail.com>   r=mkanat  a=myk
This commit is contained in:
travis%sedsystems.ca 2005-02-28 21:31:31 +00:00
parent cf16f9585d
commit b2e58cc596

View File

@ -306,7 +306,7 @@ sub check_multi {
if ($param->{'type'} eq "s") {
unless (scalar(grep {$_ eq $value} (@{$param->{'choices'}}))) {
return "Invalid choice '$value' for single-select list param '$param'";
return "Invalid choice '$value' for single-select list param '$param->{'name'}'";
}
return "";
@ -314,7 +314,7 @@ sub check_multi {
elsif ($param->{'type'} eq "m") {
foreach my $chkParam (@$value) {
unless (scalar(grep {$_ eq $chkParam} (@{$param->{'choices'}}))) {
return "Invalid choice '$chkParam' for multi-select list param '$param'";
return "Invalid choice '$chkParam' for multi-select list param '$param->{'name'}'";
}
}