Make all exceptions available.

This commit is contained in:
Malcolm Tyrrell
2020-08-18 18:14:51 +01:00
parent b7c789da67
commit e1a0163e7e
7 changed files with 30 additions and 32 deletions

View File

@@ -134,12 +134,12 @@ aiScene *BaseImporter::ReadFile(Importer *pImp, const std::string &pFile, IOSyst
// extract error description
m_ErrorText = err.what();
ASSIMP_LOG_ERROR(m_ErrorText.c_str());
m_exception = std::current_exception();
return nullptr;
} catch( const std::exception& err ) {
// extract error description
m_ErrorText = "Internal error";
ASSIMP_LOG_ERROR(err.what());
m_internalException = std::current_exception();
m_exception = std::current_exception();
return nullptr;
}