diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index eded9f98f..77d38b2fa 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -263,7 +263,8 @@ HttpUtils_Connect($) "HttpUtils_ConnErr", \%timerHash, 0); return undef; } else { - return "connect: $!"; + $hash->{callback}($hash, "connect to $hash->{addr}: $!", ""); + return undef; } } });