changeset 45911 | 8939062597f0 |
parent 45909 | ca39c45014fa |
child 45912 | 35ab6e39f482 |
--- a/mercurial/dispatch.py Mon Nov 23 14:48:05 2020 -0800 +++ b/mercurial/dispatch.py Mon Nov 23 10:42:03 2020 -0800 @@ -1174,7 +1174,7 @@ intents=func.intents, ) if not repo.local(): - raise error.Abort( + raise error.InputError( _(b"repository '%s' is not local") % path ) repo.ui.setconfig( @@ -1195,7 +1195,7 @@ req.earlyoptions[b'repository'] = guess return _dispatch(req) if not path: - raise error.RepoError( + raise error.InputError( _( b"no repository found in" b" '%s' (.hg not found)"