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
|
// extract error description
|
||||||
m_ErrorText = err.what();
|
m_ErrorText = err.what();
|
||||||
ASSIMP_LOG_ERROR(m_ErrorText.c_str());
|
ASSIMP_LOG_ERROR(m_ErrorText.c_str());
|
||||||
m_exception = std::current_exception();
|
m_Exception = std::current_exception();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
} catch( const std::exception& err ) {
|
} catch( const std::exception& err ) {
|
||||||
m_ErrorText = "Internal error";
|
m_ErrorText = "Internal error";
|
||||||
ASSIMP_LOG_ERROR(err.what());
|
ASSIMP_LOG_ERROR(err.what());
|
||||||
m_exception = std::current_exception();
|
m_Exception = std::current_exception();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ public:
|
||||||
* @return The last exception that occurred.
|
* @return The last exception that occurred.
|
||||||
*/
|
*/
|
||||||
const std::exception_ptr& GetException() const {
|
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"
|
/// In case of other errors, this will just be "Internal error"
|
||||||
std::string m_ErrorText;
|
std::string m_ErrorText;
|
||||||
/// An exception which occurred.
|
/// An exception which occurred.
|
||||||
std::exception_ptr m_exception;
|
std::exception_ptr m_Exception;
|
||||||
/// Currently set progress handler.
|
/// Currently set progress handler.
|
||||||
ProgressHandler *m_progress;
|
ProgressHandler *m_progress;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue