gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 105/282: url: Include the failure reason when curl_win32_idn_to_


From: gnunet
Subject: [gnurl] 105/282: url: Include the failure reason when curl_win32_idn_to_ascii() fails
Date: Wed, 01 Apr 2020 14:29:30 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit f8f4a9446550f2da7f1dc1892f780aacc7115ec3
Author: Steve Holme <address@hidden>
AuthorDate: Sun Feb 9 04:37:52 2020 +0000

    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
---
 lib/url.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/url.c b/lib/url.c
index 07d429e35..f3b26dafa 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1514,7 +1514,9 @@ static CURLcode idnconvert_hostname(struct connectdata 
*conn,
       host->name = host->encalloc;
     }
     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;
     }
 #else

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]