mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 23:35:07 -06:00
More clear error handling for container deserialization
CURA-5045 - If a container cannot be deserialized in project loading, it should fail right on the spot because even if it continues, it still won't work. - In other places, at least log deserialization errors if any of them show up.
This commit is contained in:
parent
572721e20d
commit
4615c756a7
2 changed files with 12 additions and 4 deletions
|
@ -708,6 +708,7 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
try:
|
||||
instance_container.deserialize(serialized, file_path)
|
||||
except ContainerFormatError:
|
||||
Logger.logException("e", "Unable to deserialize InstanceContainer %s", file_path)
|
||||
continue
|
||||
self.addContainer(instance_container)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue