2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

HttpUtils.pm: better error message in special case (Forum #101695)

git-svn-id: https://svn.fhem.de/fhem/trunk@19689 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-06-23 07:28:05 +00:00
parent e2a12ed958
commit 8366a34838

View File

@ -409,8 +409,9 @@ HttpUtils_Connect($)
my $errno = unpack("I",$packed);
if($errno) {
HttpUtils_Close($hash);
my $msg = "$host: ".strerror($errno);
my $msg = "$host: ".strerror($errno)." ($errno)";
Log3 $hash, $hash->{loglevel}, "HttpUtils: $msg";
$hash->{errno} = $errno;
return $hash->{callback}($hash, $msg, "");
}