mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 20:03:47 +00:00
Attempt to fix non compatible (newer) .3mf and .amf import error handling on Linux and OsX
This commit is contained in:
@@ -567,7 +567,7 @@ namespace Slic3r {
|
|||||||
{
|
{
|
||||||
// ensure the zip archive is closed and rethrow the exception
|
// ensure the zip archive is closed and rethrow the exception
|
||||||
close_zip_reader(&archive);
|
close_zip_reader(&archive);
|
||||||
throw e;
|
throw std::runtime_error(e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -872,7 +872,7 @@ bool load_amf_archive(const char* path, DynamicPrintConfig* config, Model* model
|
|||||||
{
|
{
|
||||||
// ensure the zip archive is closed and rethrow the exception
|
// ensure the zip archive is closed and rethrow the exception
|
||||||
close_zip_reader(&archive);
|
close_zip_reader(&archive);
|
||||||
throw e;
|
throw std::runtime_error(e.what());
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user