mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH: add timestamp for print error
Change-Id: If275a3148552183e75cc656c8478b8fd4ad64075
This commit is contained in:
parent
09f14f0ffc
commit
d61986028d
1 changed files with 4 additions and 2 deletions
|
@ -1641,9 +1641,11 @@ void StatusPanel::update_error_message()
|
|||
|
||||
wxString error_msg = wxGetApp().get_hms_query()->query_print_error_msg(obj->print_error);
|
||||
if (!error_msg.IsEmpty()) {
|
||||
error_msg = wxString::Format("%s[%s]",
|
||||
auto time = wxDateTime::Now();
|
||||
auto show_time = time.Format("%H%M%S");
|
||||
error_msg = wxString::Format("%s[%s %s]",
|
||||
error_msg,
|
||||
print_error_str);
|
||||
print_error_str, show_time);
|
||||
show_error_message(error_msg, print_error_str);
|
||||
} 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