diff mercurial/dispatch.py @ 9470:ba75830d17a9

dispatch: catch ConfigError while constructing ui
author Martin Geisler <mg@lazybytes.net>
date Sat, 19 Sep 2009 13:52:54 +0200
parents 1de6e7e1bb9f
children bccf780f78ed 02c43e8e0835
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sat Sep 12 11:17:07 2009 +0200
+++ b/mercurial/dispatch.py	Sat Sep 19 13:52:54 2009 +0200
@@ -24,6 +24,9 @@
     except util.Abort, inst:
         sys.stderr.write(_("abort: %s\n") % inst)
         return -1
+    except error.ConfigError, inst:
+        sys.stderr.write(_("hg: %s\n") % inst)
+        return -1
     return _runcatch(u, args)
 
 def _runcatch(ui, args):