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,8 +478,12 @@ structure_Set($@)
|
|||||||
$ret .= $sret;
|
$ret .= $sret;
|
||||||
}
|
}
|
||||||
if($list[1] eq "?") {
|
if($list[1] eq "?") {
|
||||||
$sret =~ s/.*one of //;
|
if(!defined($sret)) {
|
||||||
map { $pars{$_} = 1 } split(" ", $sret);
|
Log 1, "$me: 'set $d ?' returned undef";
|
||||||
|
} else {
|
||||||
|
$sret =~ s/.*one of //;
|
||||||
|
map { $pars{$_} = 1 } split(" ", $sret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user