Error-reporting: show XML path when 3D load fails
This commit is contained in:
committed by
Automatic Release Builder
parent
84a569913d
commit
57b4060eb3
@@ -313,7 +313,7 @@ sgLoad3DModel_internal(const SGPath& path,
|
|||||||
modelpath = SGModelLib::findDataFile(modelPathStr, NULL, modelDir);
|
modelpath = SGModelLib::findDataFile(modelPathStr, NULL, modelDir);
|
||||||
if (modelpath.isNull()) {
|
if (modelpath.isNull()) {
|
||||||
simgear::reportFailure(simgear::LoadFailure::NotFound, simgear::ErrorCode::ThreeDModelLoad,
|
simgear::reportFailure(simgear::LoadFailure::NotFound, simgear::ErrorCode::ThreeDModelLoad,
|
||||||
"Model not found:" + modelPathStr, sg_location{modelPathStr});
|
"Model not found:" + modelPathStr, path);
|
||||||
throw sg_io_exception("Model file not found: '" + modelPathStr + "'",
|
throw sg_io_exception("Model file not found: '" + modelPathStr + "'",
|
||||||
path, {}, false);
|
path, {}, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user