Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 45926:8939062597f0
errors: raise InputError on bad repo arguments
I'm not sure if one of these should be StateError...
Differential Revision: https://phab.mercurial-scm.org/D9383
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 23 Nov 2020 10:42:03 -0800 |
parents | ca39c45014fa |
children | 35ab6e39f482 |
line wrap: on
line diff
--- 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)"