mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 09:38:54 -05:00
url: Include the failure reason when curl_win32_idn_to_ascii() fails
Provide the failure reason in the failf() info just as we do for the libidn2 version of code. Closes #4899
This commit is contained in:
parent
05d3312f77
commit
f8f4a94465
@ -1514,7 +1514,9 @@ static CURLcode idnconvert_hostname(struct connectdata *conn,
|
|||||||
host->name = host->encalloc;
|
host->name = host->encalloc;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
failf(data, "Failed to convert %s to ACE;\n", host->name);
|
char buffer[STRERROR_LEN];
|
||||||
|
failf(data, "Failed to convert %s to ACE; %s\n", host->name,
|
||||||
|
Curl_winapi_strerror(GetLastError(), buffer, sizeof(buffer)));
|
||||||
return CURLE_URL_MALFORMAT;
|
return CURLE_URL_MALFORMAT;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user