summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-08 00:12:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-08 00:12:10 +0300
commit665c04b18a29eff9f866a9f8e61c251d405d16cd (patch)
treeaaef64c5a95f5316af60372ea869b50b5138947d /testxml
parent59af0d35e022747b48bf265bf95d89a585613bb0 (diff)
downloadevol-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-xtestxml/testxml.py6
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)