Give file not found error for a non-existing pspec file (Serdar Dalgıç)
This commit is contained in:
@@ -82,6 +82,8 @@ class XmlFile(object):
|
||||
try:
|
||||
self.doc = iks.parse(localpath)
|
||||
return self.doc
|
||||
except OSError, e:
|
||||
raise Error(_("Unable to read file (%s): %s") %(localpath,e))
|
||||
except Exception, e:
|
||||
raise Error(_("File '%s' has invalid XML") % (localpath) )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user