mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Make error message log which layer could not be found
This commit is contained in:
parent
77ffc16c33
commit
fdc629de32
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class FilamentChange(Script):
|
||||||
if layer_num <= len(data):
|
if layer_num <= len(data):
|
||||||
index, layer_data = self._searchLayerData(data, layer_num - 1)
|
index, layer_data = self._searchLayerData(data, layer_num - 1)
|
||||||
if layer_data is None:
|
if layer_data is None:
|
||||||
Logger.log("e", "Could not found the layer")
|
Logger.log("e", "Could not find the layer {layer_num}".format(layer_num = layer_num))
|
||||||
continue
|
continue
|
||||||
lines = layer_data.split("\n")
|
lines = layer_data.split("\n")
|
||||||
lines.insert(2, color_change)
|
lines.insert(2, color_change)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue