mercurial/error.py
branchstable
changeset 14761 1a9256cdf10f
parent 13447 931a72e00efa
child 15017 f4522df38c65
--- a/mercurial/error.py	Tue Jun 28 00:56:33 2011 +0200
+++ b/mercurial/error.py	Sat Jun 25 02:30:17 2011 +0200
@@ -43,7 +43,9 @@
     'Exception raised when parsing config files (msg[, pos])'
 
 class RepoError(Exception):
-    pass
+    def __init__(self, *args, **kw):
+        Exception.__init__(self, *args)
+        self.hint = kw.get('hint')
 
 class RepoLookupError(RepoError):
     pass