Store current exception when caught in ASSIMP_CATCH_GLOBAL_EXCEPTIONS (#5810)

In all other instances where we set mErrorString inside a catch block
we also set mException. I think that this was an oversight.

Co-authored-by: Michael Schmitt <michael.schmitt@visometry.com>
Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
Michael Schmitt
2024-10-29 10:59:37 +01:00
committed by GitHub
parent 53d4663f29
commit e699d23559

View File

@@ -771,6 +771,7 @@ const aiScene* Importer::ReadFile( const char* _pFile, unsigned int pFlags) {
#else
pimpl->mErrorString = std::string("std::exception: ") + e.what();
#endif
pimpl->mException = std::current_exception();
ASSIMP_LOG_ERROR(pimpl->mErrorString);
delete pimpl->mScene; pimpl->mScene = nullptr;