Error-reporting: show XML path when 3D load fails
This commit is contained in:
parent
087547c6a0
commit
71358dca92
@ -556,7 +556,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