Actually, just keep the old behaviour for now.

This commit is contained in:
Malcolm Tyrrell
2020-08-20 14:32:15 +01:00
parent 9b5e758bdd
commit 8f893e3653
4 changed files with 10 additions and 13 deletions

View File

@@ -130,14 +130,9 @@ aiScene *BaseImporter::ReadFile(Importer *pImp, const std::string &pFile, IOSyst
// passes scale into ScaleProcess
UpdateImporterScale(pImp);
} catch( const DeadlyImportError& err ) {
} catch( const std::exception &err ) {
// 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 ) {
m_ErrorText = "Internal error";
ASSIMP_LOG_ERROR(err.what());
m_Exception = std::current_exception();
return nullptr;