Error-reporting: show XML path when 3D load fails
This commit is contained in:
parent
84a569913d
commit
57b4060eb3
@ -313,7 +313,7 @@ sgLoad3DModel_internal(const SGPath& path,
|
||||
modelpath = SGModelLib::findDataFile(modelPathStr, NULL, modelDir);
|
||||
if (modelpath.isNull()) {
|
||||
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 + "'",
|
||||
path, {}, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user