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:
authorDavid Kocik <kocikdav@gmail.com>2020-02-19 17:59:40 +0300
committerDavid Kocik <kocikdav@gmail.com>2020-02-20 12:35:53 +0300
commit746a5c178856971378aa579d078cfb5dc4e43afb (patch)
treec97b837e432a0a53de0432497b3fb698822f5edb /src/slic3r/GUI
parentc691a225c2954dd59a3537562d930f90d9c2f0c0 (diff)
bug fix at check_copy() while exporting to sd/usb
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/BackgroundSlicingProcess.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slic3r/GUI/BackgroundSlicingProcess.cpp b/src/slic3r/GUI/BackgroundSlicingProcess.cpp
index 548a19f77..53c3ec5ea 100644
--- a/src/slic3r/GUI/BackgroundSlicingProcess.cpp
+++ b/src/slic3r/GUI/BackgroundSlicingProcess.cpp
@@ -108,6 +108,16 @@ void BackgroundSlicingProcess::process_fff()
std::string err_msg = "Copying of the temporary G-code to the output G-code failed. There might be problem with target device, please try exporting again or using different device. The corrupted output G-code is at " + export_path + ".tmp.";
throw std::runtime_error(_utf8(L(err_msg)));
}
+ else if (with_check && copy_ret_val == -4)
+ {
+ std::string err_msg = "Copying of the temporary G-code has finnished but the original code at "+ m_temp_output_path +" couldn't be opened during copy check. The output G-code is at " + export_path + ".tmp.";
+ throw std::runtime_error(_utf8(L(err_msg)));
+ }
+ else if (with_check && copy_ret_val == -5)
+ {
+ std::string err_msg = "Copying of the temporary G-code has finnished but the exported code couldn't be opened during copy check. The output G-code is at " + export_path + ".tmp.";
+ throw std::runtime_error(_utf8(L(err_msg)));
+ }
else if (copy_ret_val == -3)
{
std::string err_msg = "Renaming of the G-code after copying to the selected destination folder has failed. Current path is " + export_path + ".tmp. Please try exporting again.";