From 0dad7adfa1ecd42a429a97a583cf908078386372 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 23 Sep 2020 12:58:58 +0200 Subject: [PATCH] "There is an object with no extrusions on the first layer." should throw SlicingError, not RuntimeError. --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 431ad3830..bed8b1dba 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -629,7 +629,7 @@ std::vector GCode::collect_layers_to_print(const PrintObjec // Check that there are extrusions on the very first layer. if (layers_to_print.size() == 1u) { if (!has_extrusions) - throw Slic3r::RuntimeError(_(L("There is an object with no extrusions on the first layer."))); + throw Slic3r::SlicingError(_(L("There is an object with no extrusions on the first layer."))); } // In case there are extrusions on this layer, check there is a layer to lay it on.