Provide template for whiskers error.

This commit is contained in:
chriseth 2017-09-19 10:25:01 +02:00
parent 2530223ab5
commit f28d40ef0b

View File

@ -90,7 +90,13 @@ string Whiskers::replace(
string tagName(_match[1]);
if (!tagName.empty())
{
assertThrow(_parameters.count(tagName), WhiskersError, "Value for tag " + tagName + " not provided.");
assertThrow(
_parameters.count(tagName),
WhiskersError,
"Value for tag " + tagName + " not provided.\n" +
"Template:\n" +
_template
);
return _parameters.at(tagName);
}
else