From 73988e234568429b053bda79c241496791c8cb45 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Thu, 7 Jun 2012 23:09:00 +0200 Subject: Made error on imageset loading a bit more informative Reviewed-by: bjorn. --- src/resources/spritedef.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index c1f74ec8..7ccf1ff6 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -161,7 +161,8 @@ void SpriteDef::loadImageSet(xmlNodePtr node, const std::string &palettes) if (!imageSet) { - logger->error("Couldn't load imageset!"); + logger->error(strprintf("Couldn't load imageset (%s)!", + imageSrc.c_str()).c_str()); } imageSet->setOffsetX(XML::getProperty(node, "offsetX", 0)); -- cgit v1.2.3-70-g09d2