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:
authorVojtech Bubnik <bubnikv@gmail.com>2021-06-29 16:41:47 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-08-13 14:37:24 +0300
commit965c2f2c5592431515fcad4924537539a8c12ecf (patch)
tree57d29a27710242e85ed126182a62ffe153fec3da /tests/libslic3r
parent4cbe7a9545501a44704869d4b1392b07f8a48de4 (diff)
Improved error reporting when importing various configuration files:
1) Slic3r::RuntimeError was replaced with ConfigurationError, all exceptions thrown by the configuration layer are derived from ConfigurationError. 2) When parsing configuration files, ConfigurationError is catched and rethrown extended with the file name being parsed.
Diffstat (limited to 'tests/libslic3r')
-rw-r--r--tests/libslic3r/test_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libslic3r/test_config.cpp b/tests/libslic3r/test_config.cpp
index 7fbf31b11..97729ac8e 100644
--- a/tests/libslic3r/test_config.cpp
+++ b/tests/libslic3r/test_config.cpp
@@ -92,7 +92,7 @@ SCENARIO("Config accessor functions perform as expected.", "[Config]") {
}
WHEN("A numeric option is set to a non-numeric value.") {
THEN("A BadOptionTypeException exception is thown.") {
- REQUIRE_THROWS_AS(config.set_deserialize_strict("perimeter_speed", "zzzz"), BadOptionTypeException);
+ REQUIRE_THROWS_AS(config.set_deserialize_strict("perimeter_speed", "zzzz"), BadOptionValueException);
}
THEN("The value does not change.") {
REQUIRE(config.opt<ConfigOptionFloat>("perimeter_speed")->getFloat() == 60.0);