* fix error message

This commit is contained in:
Eray Özkural
2005-11-14 20:35:26 +00:00
parent 2b7efe3857
commit 1b25ac13bb
+1 -2
View File
@@ -44,7 +44,6 @@ XML_NS = unicode(XML_NAMESPACE)
import pisi
class Error(pisi.Error):
"named this way because the class if mostly used with an import *"
pass
class XmlFile(object):
@@ -71,7 +70,7 @@ class XmlFile(object):
self.doc = ParsePath(path)
return self.doc.documentElement
except Ft.FtException, e:
raise Error(_("File '%s' has invalid XML:") % (path, str(e)) )
raise Error(_("File '%s' has invalid XML: %s") % (path, str(e)) )
def writexml(self, path):
f = file(path, 'w')