mercurial/error.py
changeset 25242 8de7d1d937b3
parent 24217 d2b81256db1e
child 25248 821e664924dc
--- a/mercurial/error.py	Thu May 21 14:30:22 2015 -0500
+++ b/mercurial/error.py	Wed May 20 18:17:40 2015 -0500
@@ -64,6 +64,10 @@
 class OutOfBandError(Exception):
     """Exception raised when a remote repo reports failure"""
 
+    def __init__(self, *args, **kw):
+        Exception.__init__(self, *args)
+        self.hint = kw.get('hint')
+
 class ParseError(Exception):
     """Raised when parsing config files and {rev,file}sets (msg[, pos])"""