Log error on failed machine creation

An error message will be generated when machine creation fails
while switching printer types in the printer configuration menu.

CURA-6127
This commit is contained in:
Kostas Karmas 2019-12-10 14:44:31 +01:00
parent 6aa8d060d5
commit da1a5d1be6

View File

@ -1241,6 +1241,7 @@ class MachineManager(QObject):
if not new_machine:
new_machine = CuraStackBuilder.createMachine(machine_definition_id + "_sync", machine_definition_id)
if not new_machine:
Logger.log("e", "Failed to create new machine when switching configuration.")
return
for metadata_key in self._global_container_stack.getMetaData():