mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ class CuraStackBuilder:
|
|||
for position in extruder_dict:
|
||||
try:
|
||||
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
|
||||
|
||||
for new_extruder in new_global_stack.extruderList: # Only register the extruders if we're sure that all of them are correct.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue