diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-08 00:12:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-08 00:12:10 +0300 |
commit | 665c04b18a29eff9f866a9f8e61c251d405d16cd (patch) | |
tree | aaef64c5a95f5316af60372ea869b50b5138947d /testxml | |
parent | 59af0d35e022747b48bf265bf95d89a585613bb0 (diff) | |
download | evol-tools-665c04b18a29eff9f866a9f8e61c251d405d16cd.tar.gz evol-tools-665c04b18a29eff9f866a9f8e61c251d405d16cd.tar.bz2 evol-tools-665c04b18a29eff9f866a9f8e61c251d405d16cd.tar.xz evol-tools-665c04b18a29eff9f866a9f8e61c251d405d16cd.zip |
testxml: fix some errors in error reporting.
Diffstat (limited to 'testxml')
-rwxr-xr-x | testxml/testxml.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index 2a9a4f5..bed95c1 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -1310,7 +1310,7 @@ def testNpcs(file): name = node.attributes["name"].value if name == "": errors = errors + 1 - print "error: " + fileName + ": Empty include name"; + print "error: " + file + ": Empty include name"; testNpcs(name) except: errors = errors + 1 @@ -1322,12 +1322,12 @@ def testNpcs(file): try: id = node.attributes["id"].value except: - print "error: " + fileName + ": no id for npc" + print "error: " + file + ": no id for npc" errors = errors + 1 continue if id in idset: - print "error: " + fileName + ": duplicate npc id=" + id + print "error: " + file + ": duplicate npc id=" + id else: idset.add(id) |