Use case which matches surrounding code.
parent
6c2ceb55f8
commit
6f9c61e157
|
@ -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();
|
||||
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();
|
||||
m_Exception = std::current_exception();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -155,7 +155,7 @@ public:
|
|||
* @return The last exception that occurred.
|
||||
*/
|
||||
const std::exception_ptr& GetException() const {
|
||||
return m_exception;
|
||||
return m_Exception;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
@ -423,7 +423,7 @@ protected:
|
|||
/// In case of other errors, this will just be "Internal error"
|
||||
std::string m_ErrorText;
|
||||
/// An exception which occurred.
|
||||
std::exception_ptr m_exception;
|
||||
std::exception_ptr m_Exception;
|
||||
/// Currently set progress handler.
|
||||
ProgressHandler *m_progress;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue