From: Frederic Bouvier Date: Wed, 13 Oct 2010 07:18:38 +0000 (+0200) Subject: Restore commit 48c6d3d89ad by Torsten Dreyer: Provide a little more descriptive error... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=87ccfbab02907522f7ba3e6af3a2c8ea0ed59f34;p=simgear.git Restore commit 48c6d3d89ad by Torsten Dreyer: Provide a little more descriptive error message if TextureBuilder fails --- diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index 61b62dfe..a694ea66 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -135,7 +135,7 @@ void TextureUnitBuilder::buildAttribute(Effect* effect, Pass* pass, catch (BuilderException& ) { SG_LOG(SG_INPUT, SG_ALERT, "No image file, " << "maybe the reader did not set the filename attribute, " - << "using white on " << pass->getName()); + << "using white for type '" << type << "' on '" << pass->getName() << "', in " << prop->getPath() ); texture = StateAttributeFactory::instance()->getWhiteTexture(); } pass->setTextureAttributeAndModes(unit, texture);