diff --git a/pisi/pxml/xmlfile.py b/pisi/pxml/xmlfile.py index 5afdfe08..b5f565be 100644 --- a/pisi/pxml/xmlfile.py +++ b/pisi/pxml/xmlfile.py @@ -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) )