From: dooglus Date: Fri, 11 Apr 2008 12:46:25 +0000 (+0000) Subject: Improve a warning message when we find an unknown layer parameter. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=953d73f1c6614aeafb5f91b67fe4f8b2e956f91d;p=synfig.git Improve a warning message when we find an unknown layer parameter. git-svn-id: http://svn.voria.com/code@2012 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/loadcanvas.cpp b/synfig-core/trunk/src/synfig/loadcanvas.cpp index 1282601..539c2da 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.cpp +++ b/synfig-core/trunk/src/synfig/loadcanvas.cpp @@ -1776,7 +1776,9 @@ CanvasParser::parse_layer(xmlpp::Element *element,Canvas::Handle canvas) // the layer liked it if(!layer->set_param(param_name,data)) { - warning((*iter),_("Layer rejected value for ")); + warning((*iter),strprintf(_("Layer '%s' rejected value for parameter '%s'"), + element->get_attribute("type")->get_value().c_str(), + param_name.c_str())); continue; } }