Skip to content

Commit

Permalink
ci-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 28, 2024
1 parent 703dcdc commit 81452e2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cpp/include/kvikio/shim/libcurl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
// <https://curl.se/libcurl/c/CURLOPT_NOSIGNAL.html>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 81452e2

Please sign in to comment.