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:
parent
e2a12ed958
commit
8366a34838
@ -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, "");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user