mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +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:
parent
e2a12ed958
commit
8366a34838
@ -409,8 +409,9 @@ HttpUtils_Connect($)
|
|||||||
my $errno = unpack("I",$packed);
|
my $errno = unpack("I",$packed);
|
||||||
if($errno) {
|
if($errno) {
|
||||||
HttpUtils_Close($hash);
|
HttpUtils_Close($hash);
|
||||||
my $msg = "$host: ".strerror($errno);
|
my $msg = "$host: ".strerror($errno)." ($errno)";
|
||||||
Log3 $hash, $hash->{loglevel}, "HttpUtils: $msg";
|
Log3 $hash, $hash->{loglevel}, "HttpUtils: $msg";
|
||||||
|
$hash->{errno} = $errno;
|
||||||
return $hash->{callback}($hash, $msg, "");
|
return $hash->{callback}($hash, $msg, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user