mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 06:15:46 +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
f22d7d4e4f
commit
538ae13298
1 changed files with 2 additions and 1 deletions
|
@ -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", ""};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue