mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
tool changer support - init work
This commit is contained in:
@@ -3982,16 +3982,18 @@ void GUI_App::on_http_error(wxCommandEvent &evt)
|
||||
wxString result;
|
||||
if (status >= 400 && status < 500) {
|
||||
try {
|
||||
json j = json::parse(evt.GetString());
|
||||
if (j.contains("code")) {
|
||||
if (!j["code"].is_null())
|
||||
code = j["code"].get<int>();
|
||||
auto evt_str = evt.GetString();
|
||||
if (!evt_str.empty()) {
|
||||
json j = json::parse(evt_str);
|
||||
if (j.contains("code")) {
|
||||
if (!j["code"].is_null())
|
||||
code = j["code"].get<int>();
|
||||
}
|
||||
if (j.contains("error"))
|
||||
if (!j["error"].is_null())
|
||||
error = j["error"].get<std::string>();
|
||||
}
|
||||
if (j.contains("error"))
|
||||
if (!j["error"].is_null())
|
||||
error = j["error"].get<std::string>();
|
||||
}
|
||||
catch (...) {}
|
||||
} catch (...) {}
|
||||
}
|
||||
|
||||
// Version limit
|
||||
|
||||
Reference in New Issue
Block a user