mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: better retunr in AnalyzePerlCommand (Forum #89953)
git-svn-id: https://svn.fhem.de/fhem/trunk@17089 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ee6ea0cc29
commit
1d2318d563
@ -1110,8 +1110,10 @@ AnalyzePerlCommand($$;$)
|
||||
|
||||
$cmdFromAnalyze = $cmd;
|
||||
my $ret = eval $cmd;
|
||||
Log 1, "ERROR evaluating $cmd: $@" if($@);
|
||||
$ret = $@ if($@);
|
||||
if($@) {
|
||||
$ret = $@;
|
||||
Log 1, "ERROR evaluating $cmd: $ret";
|
||||
}
|
||||
$cmdFromAnalyze = undef;
|
||||
return $ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user