mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
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:
parent
675a8c140e
commit
91797c3944
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue