mercurial/commands.py
changeset 45842 1bf1dcbc9950
parent 45840 527ce85c2e60
child 45877 ac362d5a7893
--- a/mercurial/commands.py	Thu Oct 22 13:56:01 2020 -0700
+++ b/mercurial/commands.py	Tue Oct 20 08:56:00 2020 -0700
@@ -4903,7 +4903,7 @@
     # style URLs, so don't overwrite dest.
     path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
     if not path:
-        raise error.Abort(
+        raise error.ConfigError(
             _(b'default repository not configured!'),
             hint=_(b"see 'hg help config.paths'"),
         )
@@ -5524,7 +5524,7 @@
 
     path = ui.paths.getpath(dest, default=(b'default-push', b'default'))
     if not path:
-        raise error.Abort(
+        raise error.ConfigError(
             _(b'default repository not configured!'),
             hint=_(b"see 'hg help config.paths'"),
         )