Browse Source

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 <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Michael Schmitt 10 months ago
parent
commit
e699d23559
1 changed files with 1 additions and 0 deletions
  1. 1 0
      code/Common/Importer.cpp

+ 1 - 0
code/Common/Importer.cpp

@@ -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;