2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01: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:
Kyle Kienapfel 2022-10-05 12:39:54 -07:00 committed by GitHub
parent 71fe9fd0f2
commit 3b5a937125
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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