Attempt to fix non compatible (newer) .3mf and .amf import error handling on Linux and OsX

This commit is contained in:
Enrico Turri 2019-09-02 09:38:45 +02:00
parent eb458163e3
commit 813a73e614
2 changed files with 2 additions and 2 deletions

View file

@ -567,7 +567,7 @@ namespace Slic3r {
{
// ensure the zip archive is closed and rethrow the exception
close_zip_reader(&archive);
throw e;
throw std::runtime_error(e.what());
}
}
}

View file

@ -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
close_zip_reader(&archive);
throw e;
throw std::runtime_error(e.what());
}
break;