mirror of
https://github.com/Fishwaldo/open-zwave.git
synced 2025-03-15 11:31:40 +00:00
Fix testconfig.pl error printing. (#1975)
Use number of keys instead of size(hash)
This commit is contained in:
parent
85ca5769a5
commit
d0e48bf554
1 changed files with 3 additions and 2 deletions
|
@ -417,8 +417,9 @@ sub CheckSensorMultiLevelCCTypes {
|
|||
|
||||
|
||||
sub PrettyPrintErrors() {
|
||||
if (length(%errors) > 0) {
|
||||
print "\n\nErrors: (Please Correct before Submitting to OZW)\n";
|
||||
my $number_of_errors = keys %errors;
|
||||
if ($number_of_errors > 0) {
|
||||
print "\n\nErrors: ", $number_of_errors, ". (Please Correct before Submitting to OZW)\n";
|
||||
while ((my $key, my $value) = each %errors)
|
||||
{
|
||||
foreach my $detail (@{$value})
|
||||
|
|
Loading…
Add table
Reference in a new issue