fill_config: tweak for_each error message

Change-Id: If2c87e4aabeba91f99a2ec9da2b3d7ac8fa986ba
This commit is contained in:
Neels Hofmeyr 2018-11-26 01:17:42 +01:00
parent ae79f4b349
commit 3c093457d2
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ def insert_foreach(tmpl, tmpl_dir, tmpl_src, match, local_config, arg):
end_at = tmpl.find(end_str, start_span[1])
if end_at < 0:
raise Exception('%r: unmatched %r' % (tmpl_src, match.string))
raise Exception('%r: ${for_each()} expects %r in %r' % (tmpl_src, end_str, tmpl[start_span[1]:]))
end_span = (end_at, end_at + len(end_str))