This commit is contained in:
David Kocik 2020-12-01 12:01:01 +01:00
parent 247f3a7dbe
commit 994b69f19b
2 changed files with 1 additions and 2 deletions

View file

@ -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();

View file

@ -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());