From 994b69f19bfa7e33559e8d1e6a1b507cf7d42927 Mon Sep 17 00:00:00 2001 From: David Kocik <kocikdav@gmail.com> Date: Tue, 1 Dec 2020 12:01:01 +0100 Subject: [PATCH] cleanup --- src/libslic3r/utils.cpp | 2 +- src/slic3r/GUI/BackgroundSlicingProcess.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libslic3r/utils.cpp b/src/libslic3r/utils.cpp index e316d148f..3c1416936 100644 --- a/src/libslic3r/utils.cpp +++ b/src/libslic3r/utils.cpp @@ -436,7 +436,7 @@ CopyFileResult copy_file_inner(const std::string& from, const std::string& to, s ec.clear(); boost::filesystem::copy_file(source, target, boost::filesystem::copy_option::overwrite_if_exists, ec); if (ec) { - error_message = ec.message()/*decode_path(ec.message().c_str())*/; + error_message = ec.message(); return FAIL_COPY_FILE; } ec.clear(); diff --git a/src/slic3r/GUI/BackgroundSlicingProcess.cpp b/src/slic3r/GUI/BackgroundSlicingProcess.cpp index 29f3f775a..1d309299a 100644 --- a/src/slic3r/GUI/BackgroundSlicingProcess.cpp +++ b/src/slic3r/GUI/BackgroundSlicingProcess.cpp @@ -180,7 +180,6 @@ void BackgroundSlicingProcess::process_fff() BOOST_LOG_TRIVIAL(error) << "Unexpected fail code(" << (int)copy_ret_val << ") durring copy_file() to " << export_path << "."; break; } - BOOST_LOG_TRIVIAL(error) << "copy_ret_val is ok"; m_print->set_status(95, _utf8(L("Running post-processing scripts"))); run_post_process_scripts(export_path, m_fff_print->config()); m_print->set_status(100, (boost::format(_utf8(L("G-code file exported to %1%"))) % export_path).str());