FIX: modify the error message
Change-Id: I6b55e190d4b101f7d4648985bfc4d4b24988c4ac
This commit is contained in:
parent
d18fab1b96
commit
b1bef0686b
|
@ -1970,7 +1970,8 @@ void ObjectList::load_modifier(const wxArrayString& input_files, ModelObject& mo
|
||||||
model = Model::read_from_file(input_file, nullptr, nullptr, LoadStrategy::LoadModel);
|
model = Model::read_from_file(input_file, nullptr, nullptr, LoadStrategy::LoadModel);
|
||||||
}
|
}
|
||||||
catch (std::exception& e) {
|
catch (std::exception& e) {
|
||||||
auto msg = _L("Error!") + " " + input_file + " : " + e.what() + ".";
|
// auto msg = _L("Error!") + " " + input_file + " : " + e.what() + ".";
|
||||||
|
auto msg = _L("Error!") + " " + _L("Failed to get the model data in the current file.");
|
||||||
show_error(parent, msg);
|
show_error(parent, msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue