FIX: remove file exception

1.Use boost::nowide::remove instead of std::remove

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ic674ea0791342d77418d1a0de3289d6027f967b1
This commit is contained in:
xun.zhang 2024-12-04 10:51:52 +08:00 committed by lane.wei
parent 419ce01698
commit f625202c2b
1 changed files with 1 additions and 1 deletions

View File

@ -1153,7 +1153,7 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename, st
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": after process %1%") % filename.c_str();
if (remove(filename_in.c_str()) != 0) {
if (boost::nowide::remove(filename_in.c_str()) != 0) {
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(": Failed to remove the temporary G-code file %1%") % filename_in.c_str();
throw Slic3r::RuntimeError(std::string("Failed to remove the temporary G-code file ") + filename_in + '\n' +
"Is " + filename_in + " locked?" + '\n');