SaveTool: handle error code 0 (blocked by firewall).
This commit is contained in:
parent
94f6192aa8
commit
b909aa85b7
1 changed files with 5 additions and 1 deletions
|
@ -324,8 +324,12 @@ void SaveTool::updateCheckEvent(SDL_Event& event) {
|
|||
return;
|
||||
}
|
||||
|
||||
if(r.status_code == 0) {
|
||||
_queue.addToast(Toast::Type::Error, "Seems like the connection was blocked.\nPlease check your firewall's settings.");
|
||||
}
|
||||
|
||||
if(r.status_code != 200) {
|
||||
_queue.addToast(Toast::Type::Error, Utility::format("The request failed with error code {}: {}", r.status_code, r.reason.c_str()));
|
||||
_queue.addToast(Toast::Type::Error, Utility::format("The request failed with error code {}:\n{}", r.status_code, r.reason.c_str()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue