From 81452e20f012fb1109c0cec130236789faa0c335 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Mon, 28 Oct 2024 21:21:33 +0100 Subject: [PATCH] ci-debug --- cpp/include/kvikio/shim/libcurl.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cpp/include/kvikio/shim/libcurl.hpp b/cpp/include/kvikio/shim/libcurl.hpp index 48e6235072..0e6f49703e 100644 --- a/cpp/include/kvikio/shim/libcurl.hpp +++ b/cpp/include/kvikio/shim/libcurl.hpp @@ -150,16 +150,14 @@ class CurlHandle { /** * @brief Construct a new curl handle. * - * Typically, do not use this directly instead use the `create_curl_handle()` macro. + * Typically, do not call this directly instead use the `create_curl_handle()` macro. * * @param handle An unused curl easy handle pointer, which is retained on destruction. * @param source_file Path of source file of the caller (for error messages). * @param source_line Line of source file of the caller (for error messages). */ - CurlHandle(LibCurl::UniqueHandlePtr handle, std::string source_file, std::string source_line) - : _handle{std::move(handle)}, - _source_file(std::move(source_file)), - _source_line(std::move(source_line)) + CurlHandle(LibCurl::UniqueHandlePtr handle, char* const source_file, std::string source_line) + : _handle{std::move(handle)}, _source_file(source_file), _source_line(std::move(source_line)) { // Need CURLOPT_NOSIGNAL to support threading, see // @@ -217,6 +215,7 @@ class CurlHandle { // Perform the curl operation and check for errors. CURLcode err = curl_easy_perform(handle()); if (err != CURLE_OK) { + std::cout << "perform-source-file-size: " << _source_file.size() << std::endl; std::cout << "perform-source-file: " << _source_file << std::endl; std::string msg(_errbuf); // We can do this because we always initialize `_errbuf` as empty. std::stringstream ss;