mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_structure.pm: Report error instead of warning (Forum #103799)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20183 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ea6ee95fc4
commit
71a0b3c439
@ -478,11 +478,15 @@ structure_Set($@)
|
||||
$ret .= $sret;
|
||||
}
|
||||
if($list[1] eq "?") {
|
||||
if(!defined($sret)) {
|
||||
Log 1, "$me: 'set $d ?' returned undef";
|
||||
} else {
|
||||
$sret =~ s/.*one of //;
|
||||
map { $pars{$_} = 1 } split(" ", $sret);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
delete($hash->{INSET});
|
||||
Log3 $hash, 5, "SET: $ret" if($ret);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user