Do not use lmLog in Conf/Parser.pm (#1025)

This commit is contained in:
Clément Oudot 2016-06-06 09:20:56 +00:00
parent 4d4d5aeb2b
commit a8ecd8f76a

View File

@ -693,8 +693,9 @@ sub _scanNodes {
);
$self->newConf->{$name} = {};
if ( ref( $leaf->{data} ) ne 'ARRAY' ) {
$self->lmLog( "Double hash doesn't push an array, aborting",
'error' );
push @{ $self->errors },
{ message => $leaf->{title}
. ": double hash doesn't push an array, aborting" };
return 0;
}
foreach my $getHost ( @{ $leaf->{data} } ) {