From 57b4060eb3dfef0282a0ff3f6199ba67af9858a3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 7 Mar 2021 12:30:24 +0000 Subject: [PATCH] Error-reporting: show XML path when 3D load fails --- simgear/scene/model/SGReaderWriterXML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index 50fa2718..dc0c210b 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -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); }