Make error message log which layer could not be found

This commit is contained in:
Ghostkeeper 2019-04-15 13:17:31 +02:00
parent 77ffc16c33
commit fdc629de32
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -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)