From 92bdb68e1126a1e6dc4001f50e02f30ce252ea74 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Mon, 19 Aug 2019 15:50:49 +0200 Subject: [PATCH] Extended the error message when empty layers are detected --- src/libslic3r/GCode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index b691203c9..24be7fd60 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -474,8 +474,10 @@ std::vector GCode::collect_layers_to_print(const PrintObjec 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" + - _(L("Object name: ")) + object.model_object()->name + "\n" + _(L("Print z: ")) + - std::to_string(layers_to_print.back().print_z())); + _(L("Object name: ")) + object.model_object()->name + "\n" + _(L("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. last_extrusion_layer = &layers_to_print.back(); }