More appropriate error message

Project files can't be a directory.

Contributes to issue CURA-7996.
This commit is contained in:
Ghostkeeper 2021-02-05 15:29:56 +01:00
parent ee22be74b9
commit b54f792561
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -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()