From 2fa9bcee582749ba1a80b6aa37e015e95b6b39e8 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 24 Apr 2017 11:50:40 +0000 Subject: [PATCH] fhem.pl: output the culprit code for the bad userReading (Forum #70999) git-svn-id: https://svn.fhem.de/fhem/trunk@14097 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index b6b4c5b17..022bee253 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -4227,6 +4227,7 @@ readingsEndUpdate($$) Log 1, $value; $result= $value; } elsif(!defined($value)) { + $cmdFromAnalyze = $perlCode; # For the __WARN__ sub warn("$name userReadings $reading evaluated to undef"); next; } elsif($modifier eq "none") {