summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyle Kienapfel <doctor.whom@gmail.com>2022-10-05 12:39:54 -0700
committerGitHub <noreply@github.com>2022-10-05 21:39:54 +0200
commit3b5a937125b0a6a78530065cf06aca88c2c9db04 (patch)
tree895c6d01986c42e46054c6e2410c5774626cc614 /src
parent71fe9fd0f26b7780c914a37c5e38e43031b54bb8 (diff)
Show error from cpp-httplib when we don't have a response to read (report errors while connecting to API) (#8999)
Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/web_service/web_backend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp
index 378804c08..12a7e4922 100644
--- a/src/web_service/web_backend.cpp
+++ b/src/web_service/web_backend.cpp
@@ -111,7 +111,8 @@ struct Client::Impl {
httplib::Error error;
if (!cli->send(request, response, error)) {
- LOG_ERROR(WebService, "{} to {} returned null", method, host + path);
+ LOG_ERROR(WebService, "{} to {} returned null (httplib Error: {})", method, host + path,
+ httplib::to_string(error));
return WebResult{WebResult::Code::LibError, "Null response", ""};
}