mercurial/error.py
changeset 11574 6381fa7bfa53
parent 11292 037d910734de
child 13447 931a72e00efa
--- a/mercurial/error.py	Thu Jul 15 14:40:17 2010 +0200
+++ b/mercurial/error.py	Thu Jul 15 14:41:22 2010 +0200
@@ -32,6 +32,9 @@
 
 class Abort(Exception):
     """Raised if a command needs to print an error and exit."""
+    def __init__(self, *args, **kw):
+        Exception.__init__(self, *args)
+        self.hint = kw.get('hint')
 
 class ConfigError(Abort):
     'Exception raised when parsing config files'