##// 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 b' def runmap(context, mapping, data):'
423 try:
423 try:
424 diter = iter(d)
424 diter = iter(d)
425 except TypeError:
425 except TypeError:
426 if func is runsymbol:
426 sym = findsymbolicname((func, data))
427 raise error.ParseError(_("keyword '%s' is not iterable") % data)
427 if sym:
428 raise error.ParseError(_("keyword '%s' is not iterable") % sym)
428 else:
429 else:
429 raise error.ParseError(_("%r is not iterable") % d)
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