give a more descriptive error message

This commit is contained in:
Gunter Labes 2007-09-20 17:29:49 +00:00
parent 17f61d9822
commit e542a2adac

View file

@ -746,7 +746,7 @@ def hack_syntax(filename, lines):
# Check for duplicated attack names -- may be a result of a naive # Check for duplicated attack names -- may be a result of a naive
# boucman conversion. # boucman conversion.
if boucmanized: if boucmanized:
name_pos = wmlfind("name=", WmlIterator(lines)) name_pos = wmlfind("name=", WmlIterator(lines, filename))
duplist = {} duplist = {}
while name_pos is not None: while name_pos is not None:
key = lines[name_pos.lineno].strip() key = lines[name_pos.lineno].strip()