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


git-svn-id: svn://10.0.0.236/trunk@170009 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
travis%sedsystems.ca
2005-02-28 21:31:31 +00:00
parent d3ba2c8b12
commit bd875f2aaf

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'}'";
}
}