From a3b0941eae56ae969de400cdb5ef5a8419ef79aa Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Mon, 22 Jul 2019 16:45:13 +0200 Subject: [PATCH] mkcurl: make sure we log curl failure --- mkcurl.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkcurl.hpp b/mkcurl.hpp index 920e2c0..934e7c9 100644 --- a/mkcurl.hpp +++ b/mkcurl.hpp @@ -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; } }