mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Also print the CURLcode
on failed requests
This should help debugging the empty error messages we sometimes get on servers.
This commit is contained in:
parent
16ae4196f6
commit
28359fb23d
|
@ -271,7 +271,7 @@ int CHttpRequest::RunImpl(CURL *pUser)
|
|||
if(Ret != CURLE_OK)
|
||||
{
|
||||
if(g_Config.m_DbgCurl || m_LogProgress >= HTTPLOG::FAILURE)
|
||||
dbg_msg("http", "%s failed. libcurl error: %s", m_aUrl, aErr);
|
||||
dbg_msg("http", "%s failed. libcurl error (%d): %s", m_aUrl, (int)Ret, aErr);
|
||||
return (Ret == CURLE_ABORTED_BY_CALLBACK) ? HTTP_ABORTED : HTTP_ERROR;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue