Log error if the machine refers to invalid extruder train ID

This helped mostly for debugging but it should be a genuine warning.

Contributes to issues CURA-1278 and CURA-340.
This commit is contained in:
Ghostkeeper 2016-06-08 11:09:08 +02:00
parent 675a8c140e
commit 91797c3944
No known key found for this signature in database
GPG Key ID: 701948C5954A7385

View File

@ -169,6 +169,8 @@ class ExtruderManager(QObject):
extruder_train = container_registry.findContainerStacks(id = extruder_train_id)
if extruder_train:
yield extruder_train[0]
else:
UM.Logger.log("w", "Machine %s refers to an extruder train with ID %s, which doesn't exist.", machine_id, extruder_train_id)
## Adds the extruders of the currently active machine.
def _addCurrentMachineExtruders(self):