Compare commits

...

1 Commits

Author SHA1 Message Date
Kyle Kienapfel
7e4327c1b6 Show error from cpp-httplib on null response to web service
httplib.h has a helper function to convert Error enumeration to a string

This might help if SSL issues crop up again, or for indicating other
connection errors to user.
2022-10-05 11:44:02 -07:00

View File

@@ -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", ""};
}