|
@@ -859,13 +859,13 @@ void IRRImporter::InternReadFile(const std::string &pFile, aiScene *pScene, IOSy
|
|
|
|
|
|
// Check whether we can read from the file
|
|
|
if (file.get() == nullptr) {
|
|
|
- throw DeadlyImportError("Failed to open IRR file " + pFile);
|
|
|
+ throw DeadlyImportError("Failed to open IRR file ", pFile);
|
|
|
}
|
|
|
|
|
|
// Construct the irrXML parser
|
|
|
XmlParser st;
|
|
|
if (!st.parse( file.get() )) {
|
|
|
- return;
|
|
|
+ throw DeadlyImportError("XML parse error while loading IRR file ", pFile);
|
|
|
}
|
|
|
pugi::xml_node rootElement = st.getRootNode();
|
|
|
|