mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: add more log for print error
Change-Id: I8cccf4c8dc5c6e3d6fc08f75839585b384d83e4b Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
1167225348
commit
20702af590
3 changed files with 18 additions and 10 deletions
|
@ -188,6 +188,7 @@ wxString HMSQuery::query_error_msg(std::string error_code)
|
|||
}
|
||||
}
|
||||
else {
|
||||
BOOST_LOG_TRIVIAL(info) << "device_error is not exists";
|
||||
return wxEmptyString;
|
||||
}
|
||||
return wxEmptyString;
|
||||
|
|
|
@ -153,7 +153,8 @@ void HMSPanel::append_hms_panel(HMSItem& item) {
|
|||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
else {
|
||||
// debug for hms display error info
|
||||
m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
// m_top_sizer->Add(m_notify_item, 0, wxALIGN_CENTER_HORIZONTAL);
|
||||
BOOST_LOG_TRIVIAL(info) << "hms: do not display empty_item";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1407,15 +1407,21 @@ void StatusPanel::update_error_message()
|
|||
if (print_error_str.size() > 4) {
|
||||
print_error_str.insert(4, " ");
|
||||
}
|
||||
wxString error_msg = wxString::Format("%s[%s]",
|
||||
wxGetApp().get_hms_query()->query_print_error_msg(obj->print_error),
|
||||
|
||||
wxString error_msg = wxGetApp().get_hms_query()->query_print_error_msg(obj->print_error);
|
||||
if (!error_msg.IsEmpty()) {
|
||||
error_msg = wxString::Format("%s[%s]",
|
||||
error_msg,
|
||||
print_error_str);
|
||||
show_error_message(error_msg);
|
||||
//hint dialog
|
||||
BOOST_LOG_TRIVIAL(info) << "Print error! " << error_msg;
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << "show print error! error_msg = " << error_msg;
|
||||
SecondaryCheckDialog print_error_dlg(this->GetParent(), wxID_ANY, _L("Warning"), SecondaryCheckDialog::ButtonStyle::ONLY_CONFIRM);
|
||||
print_error_dlg.update_text(error_msg);
|
||||
print_error_dlg.ShowModal();
|
||||
} else {
|
||||
BOOST_LOG_TRIVIAL(info) << "show print error! error_msg is empty, print error = " << obj->print_error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue