mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 03:04:23 +08:00
More appropriate error message
Project files can't be a directory. Contributes to issue CURA-7996.
This commit is contained in:
parent
ee22be74b9
commit
b54f792561
@ -1947,7 +1947,7 @@ class CuraApplication(QtApplication):
|
||||
return result == WorkspaceReader.PreReadResult.accepted
|
||||
except FileNotFoundError:
|
||||
result_message = Message(text = self._i18n_catalog.i18nc("@info:status Don't translate the XML tag <filename>!",
|
||||
"Failed to load <filename>{0}</filename>. No such file or directory.",
|
||||
"Failed to load <filename>{0}</filename>. File is moved or deleted.",
|
||||
file_path), lifetime = 0,
|
||||
title = self._i18n_catalog.i18nc("@info:title", "Unable to Open File"))
|
||||
result_message.show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user