Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
mkcurl: make sure we log curl failure
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jul 24, 2019
1 parent 9ea1dce commit a3b0941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkcurl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ static Response perform2(mkcurl_uptr &handle, const Request &req) noexcept {
{
res.error = perform_and_retry(handle.get(), req.retries, res.logs);
if (res.error != CURLE_OK) {
std::stringstream ss;
ss << "curl_easy_perform: " << curl_easy_strerror((CURLcode)res.error);
mkcurl_log(res.logs, ss.str());
return res;
}
}
Expand Down

0 comments on commit a3b0941

Please sign in to comment.