Give file not found error for a non-existing pspec file (Serdar Dalgıç)

This commit is contained in:
Faik Uygur
2009-08-07 07:53:46 +00:00
parent 2c297137a6
commit 094a07fc21
+2
View File
@@ -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) )