Skip to content

Commit

Permalink
return error message (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli authored Feb 19, 2025
1 parent ac72bb0 commit ee08ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ expected<std::string, error> upload(std::string url,
if (http_code >= 400) {
return unexpected{
error{CURLE_HTTP_RETURNED_ERROR,
fmt::format("{}: {}", http_code, http_message(http_code))}};
fmt::format("{}: {} \n {}", http_code,
http_message(http_code), curl_stdout)}};
}

return curl_stdout;
Expand Down

0 comments on commit ee08ef2

Please sign in to comment.