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:
Lipu Fei 2018-04-09 14:51:03 +02:00
parent 572721e20d
commit 4615c756a7
2 changed files with 12 additions and 4 deletions

View file

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