diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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'"), ) diff --git a/tests/test-default-push.t b/tests/test-default-push.t --- a/tests/test-default-push.t +++ b/tests/test-default-push.t @@ -20,7 +20,7 @@ $ hg push --config paths.default= abort: default repository not configured! (see 'hg help config.paths') - [255] + [30] $ cd ..