mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:39:03 +08:00
Give an error message when stack fails to build
This way we may venture at a reason why it failed to build.
This commit is contained in:
parent
fc6ea28352
commit
e7d95f6d90
@ -62,7 +62,8 @@ class CuraStackBuilder:
|
|||||||
for position in extruder_dict:
|
for position in extruder_dict:
|
||||||
try:
|
try:
|
||||||
cls.createExtruderStackWithDefaultSetup(new_global_stack, position)
|
cls.createExtruderStackWithDefaultSetup(new_global_stack, position)
|
||||||
except IndexError:
|
except IndexError as e:
|
||||||
|
Logger.logException("e", "Failed to create an extruder stack for position {pos}: {err}".format(pos = position, err = str(e)))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
for new_extruder in new_global_stack.extruderList: # Only register the extruders if we're sure that all of them are correct.
|
for new_extruder in new_global_stack.extruderList: # Only register the extruders if we're sure that all of them are correct.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user