diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-26 01:17:42 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-26 01:19:16 +0100 |
commit | 3c093457d24c2e2ef80a9b53c944fd47cc636851 (patch) | |
tree | a37ea7139fc3dae36dd83d20cee384ae2d9714fc | |
parent | ae79f4b349d7d5efa674cde54b2cab162b5ad3a9 (diff) |
fill_config: tweak for_each error message
Change-Id: If2c87e4aabeba91f99a2ec9da2b3d7ac8fa986ba
-rwxr-xr-x | net/fill_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/fill_config.py b/net/fill_config.py index b84c92a..665926a 100755 --- a/net/fill_config.py +++ b/net/fill_config.py @@ -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)) |