Extended the error message when empty layers are detected
This commit is contained in:
parent
0becfa0a04
commit
92bdb68e11
1 changed files with 4 additions and 2 deletions
|
@ -474,8 +474,10 @@ std::vector<GCode::LayerToPrint> GCode::collect_layers_to_print(const PrintObjec
|
||||||
|
|
||||||
if (layer_to_print.print_z() > maximal_print_z + EPSILON)
|
if (layer_to_print.print_z() > maximal_print_z + EPSILON)
|
||||||
throw std::runtime_error(_(L("Empty layers detected, the output would not be printable.")) + "\n\n" +
|
throw std::runtime_error(_(L("Empty layers detected, the output would not be printable.")) + "\n\n" +
|
||||||
_(L("Object name: ")) + object.model_object()->name + "\n" + _(L("Print z: ")) +
|
_(L("Object name: ")) + object.model_object()->name + "\n" + _(L("Print z: ")) +
|
||||||
std::to_string(layers_to_print.back().print_z()));
|
std::to_string(layers_to_print.back().print_z()) + "\n\n" + _(L("This is "
|
||||||
|
"usually caused by negligibly small extrusions or by a faulty model. Try to repair "
|
||||||
|
" the model or change its orientation on the bed.")));
|
||||||
// Remember last layer with extrusions.
|
// Remember last layer with extrusions.
|
||||||
last_extrusion_layer = &layers_to_print.back();
|
last_extrusion_layer = &layers_to_print.back();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue