2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

10_MQTT2_DEVICE.pm: more details for broken regexps (Forum #109477)

git-svn-id: https://svn.fhem.de/fhem/trunk@21501 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-03-24 20:01:53 +00:00
parent a9e300fd05
commit 059379cde7

View File

@ -544,7 +544,7 @@ MQTT2_DEVICE_addReading($$)
my ($re,$code) = split(" ", $line,2);
return "Bad line >$line< for $name" if(!defined($re) || !defined($code));
eval { "Hallo" =~ m/^$re$/ };
return "Bad regexp: $@" if($@);
return "Bad regexp $re: $@" if($@);
if($cid && $re =~ m/^$cid:/) {
$modules{MQTT2_DEVICE}{defptr}{"re:$cid"}{$re}{"$name,$code"} = 1;
} else {