mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
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>
This commit is contained in:
parent
71fe9fd0f2
commit
3b5a937125
|
@ -111,7 +111,8 @@ struct Client::Impl {
|
||||||
httplib::Error error;
|
httplib::Error error;
|
||||||
|
|
||||||
if (!cli->send(request, response, 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", ""};
|
return WebResult{WebResult::Code::LibError, "Null response", ""};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue