ENH: add timestamp for print error

Change-Id: If275a3148552183e75cc656c8478b8fd4ad64075
This commit is contained in:
tao.jin 2023-02-23 18:25:34 +08:00 committed by Lane.Wei
parent 09f14f0ffc
commit d61986028d

View file

@ -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;