Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-09-18 11:09:58 +0300
committerbubnikv <bubnikv@gmail.com>2018-09-18 11:09:58 +0300
commit3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (patch)
tree97e9b632bdd5abc546d951771f144fe5b1d6ac73 /xs/src/libslic3r/GCode.cpp
parent27bba453312d59898f773aa54d7b625e65fc501e (diff)
Replaced CONFESS with throw std::exception in libslic3r, so now
libslic3r should be compilable without Perl.
Diffstat (limited to 'xs/src/libslic3r/GCode.cpp')
-rw-r--r--xs/src/libslic3r/GCode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp
index 3c6e6de53..d10705c18 100644
--- a/xs/src/libslic3r/GCode.cpp
+++ b/xs/src/libslic3r/GCode.cpp
@@ -2204,7 +2204,7 @@ std::string GCode::extrude_entity(const ExtrusionEntity &entity, std::string des
else if (const ExtrusionLoop* loop = dynamic_cast<const ExtrusionLoop*>(&entity))
return this->extrude_loop(*loop, description, speed, lower_layer_edge_grid);
else {
- CONFESS("Invalid argument supplied to extrude()");
+ throw std::invalid_argument("Invalid argument supplied to extrude()");
return "";
}
}
@@ -2389,7 +2389,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
} else if (path.role() == erGapFill) {
speed = m_config.get_abs_value("gap_fill_speed");
} else {
- CONFESS("Invalid speed");
+ throw std::invalid_argument("Invalid speed");
}
}
if (this->on_first_layer())
@@ -2715,7 +2715,7 @@ void GCode::ObjectByExtruder::Island::Region::append(const std::string& type, co
}
else
if (type != "infills") {
- CONFESS("Unknown parameter!");
+ throw std::invalid_argument("Unknown parameter!");
return;
}