LookupError should have same __str__ as RevlogError
authorAlexander Solovyov <piranha@piranha.org.ua>
Wed, 18 Jun 2008 16:47:47 +0300
changeset 6703 bacfee67c1a9
parent 6702 af7b26b0f884
child 6704 8251ffb35725
LookupError should have same __str__ as RevlogError
mercurial/revlog.py
--- a/mercurial/revlog.py	Wed Jun 18 12:56:41 2008 +0200
+++ b/mercurial/revlog.py	Wed Jun 18 16:47:47 2008 +0300
@@ -39,6 +39,9 @@
             name = short(name)
         RevlogError.__init__(self, _('%s@%s: %s') % (index, name, message))
 
+    def __str__(self):
+        return RevlogError.__str__(self)
+
 def getoffset(q):
     return int(q >> 16)