fixed export exceptions on import
Ogre and 3MF imports threw DeadlyExportErrors under some circumstances. Bad for people who assumed that they only needed to catch DeadlyImportErrors. Changed them to DeadlyImportErrors.
This commit is contained in:
@@ -156,7 +156,7 @@ D3MFOpcPackage::D3MFOpcPackage(IOSystem *pIOHandler, const std::string &rFile) :
|
||||
mRootStream = mZipArchive->Open(rootFile.c_str());
|
||||
ai_assert(mRootStream != nullptr);
|
||||
if (nullptr == mRootStream) {
|
||||
throw DeadlyExportError("Cannot open root-file in archive : " + rootFile);
|
||||
throw DeadlyImportError("Cannot open root-file in archive : " + rootFile);
|
||||
}
|
||||
|
||||
} else if (file == D3MF::XmlTag::CONTENT_TYPES_ARCHIVE) {
|
||||
|
||||
Reference in New Issue
Block a user