##// END OF EJS Templates
templater: use helper function to get name of non-iterable keyword
Yuya Nishihara -
r34325:e473f482 default
parent child Browse files
Show More
@@ -423,8 +423,9 def runmap(context, mapping, data):
423 423 try:
424 424 diter = iter(d)
425 425 except TypeError:
426 if func is runsymbol:
427 raise error.ParseError(_("keyword '%s' is not iterable") % data)
426 sym = findsymbolicname((func, data))
427 if sym:
428 raise error.ParseError(_("keyword '%s' is not iterable") % sym)
428 429 else:
429 430 raise error.ParseError(_("%r is not iterable") % d)
430 431
General Comments 0
You need to be logged in to leave comments. Login now