mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 23:35:07 -06:00
Importing invalid filetypes now gives proper error messages
CURA-2883
This commit is contained in:
parent
1b01455c36
commit
ac708d54b6
3 changed files with 5 additions and 1 deletions
|
@ -210,7 +210,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
return {"status": "ok", "message": catalog.i18nc("@info:status", "Successfully imported profile {0}", profile_or_list[0].getName())}
|
||||
|
||||
# If it hasn't returned by now, none of the plugins loaded the profile successfully.
|
||||
return {"status": "error", "message": catalog.i18nc("@info:status", "Profile {0} has an unknown file type.", file_name)}
|
||||
return {"status": "error", "message": catalog.i18nc("@info:status", "Profile {0} has an unknown file type or is corrupted.", file_name)}
|
||||
|
||||
def _configureProfile(self, profile, id_seed, new_name):
|
||||
profile.setReadOnly(False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue