diff --git a/httprl.module b/httprl.module index b850f3a..c19a278 100644 --- a/httprl.module +++ b/httprl.module @@ -673,7 +673,7 @@ function httprl_stream_connection_error_formatter($errno, $errstr, &$result) { $result->code = HTTPRL_ERROR_INITIALIZING_STREAM; $result->error = $t('Error initializing socket @socket.', array('@socket' => $result->socket)); } - elseif (stripos($errstr, 'Name or service not known') !== FALSE) { + elseif (stripos($errstr, 'network_getaddresses: getaddrinfo failed:') !== FALSE) { // Host not found. No such host is known. The name is not an official host // name or alias. $result->code = HTTPRL_HOST_NOT_FOUND;