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-12-16 19:51:40 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-12-16 19:51:40 +0300
commit93c4b941b560fb1d690e890594b05b435ea11e85 (patch)
tree9f024aad3a35f273325da93fef79650ad60aac0c
parent13566e3f933a39a080d6b31f405e853133930333 (diff)
Importing newer configuration data: Fixed compiler warning,
improved error reporting when deleting old cache and vendors directory.
-rw-r--r--src/libslic3r/PresetBundle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp
index b6ac1a51b..874b775cd 100644
--- a/src/libslic3r/PresetBundle.cpp
+++ b/src/libslic3r/PresetBundle.cpp
@@ -221,12 +221,12 @@ void PresetBundle::import_newer_configs(const std::string& from)
try {
boost::filesystem::remove_all(data_dir / "cache");
} catch (const std::exception &ex) {
- BOOST_LOG_TRIVIAL(error) << "Error deleting old cache " << (data_dir / "cache").string();
+ BOOST_LOG_TRIVIAL(error) << "Error deleting old cache " << (data_dir / "cache").string() << ": " << ex.what();
}
try {
boost::filesystem::remove_all(data_dir / "vendor");
} catch (const std::exception &ex) {
- BOOST_LOG_TRIVIAL(error) << "Error deleting old vendors " << (data_dir / "vendor").string();
+ BOOST_LOG_TRIVIAL(error) << "Error deleting old vendors " << (data_dir / "vendor").string() << ": " << ex.what();
}
// list of searched paths based on current directory system in setup_directories()
// do not copy cache and snapshots