include template path in missing key error.

This commit is contained in:
Tim Miller 2013-02-01 11:27:40 -08:00
parent b3bceea00d
commit bfa5f4baf4
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def render_template(template, config):
try:
return render_moustache(open(template).read(), config)
except KeyNotFoundError as e:
raise ConfigException("key '%s' does not exist in metadata file '%s'" % (e.key, template))
raise ConfigException("key '%s' from template '%s' does not exist in metadata file." % (e.key, template))
except Exception as e:
raise ConfigException("could not render moustache template %s" % template)