changeset 6703:bacfee67c1a9

LookupError should have same __str__ as RevlogError
author Alexander Solovyov <piranha@piranha.org.ua>
date Wed, 18 Jun 2008 16:47:47 +0300
parents af7b26b0f884
children 8251ffb35725
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)