mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-11 05:29:02 +08: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
@ -169,6 +169,8 @@ class ExtruderManager(QObject):
|
|||||||
extruder_train = container_registry.findContainerStacks(id = extruder_train_id)
|
extruder_train = container_registry.findContainerStacks(id = extruder_train_id)
|
||||||
if extruder_train:
|
if extruder_train:
|
||||||
yield extruder_train[0]
|
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.
|
## Adds the extruders of the currently active machine.
|
||||||
def _addCurrentMachineExtruders(self):
|
def _addCurrentMachineExtruders(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user