Print more information on xml parsing error plus minor cleanup
- Also fix some tabbing style issues
- Remove unused file core/iniparser.py
- Remove unused file core/dicttoobject.py
- Remove unused file core/jsonparser.py and reference in teston.cfg
Change-Id: I6e14bb75650c6a516cfb15fe7aec8aa396c18f04
diff --git a/TestON/core/xmlparser.py b/TestON/core/xmlparser.py
index fea0ce9..e2cfb1d 100644
--- a/TestON/core/xmlparser.py
+++ b/TestON/core/xmlparser.py
@@ -39,10 +39,10 @@
try :
parsedInfo = xmldict.xml_to_dict(xml)
return parsedInfo
- except Exception:
- print "There is no such file to parse " + fileName
+ except Exception as e:
+ print "Error parsing file " + fileName + ": " + e.message
else :
- print "file name is not correct"
+ print "File name is not correct"
def parseParams(self,paramsPath):
'''