Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 45866:d68618954ade
errors: use InputError for some errors on `hg clone`
Differential Revision: https://phab.mercurial-scm.org/D9329
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Nov 2020 15:28:06 -0800 |
parents | 00402df57db7 |
children | 89a2afe31e82 |
line wrap: on
line diff
--- a/mercurial/hg.py Thu Nov 12 13:22:40 2020 -0800 +++ b/mercurial/hg.py Thu Nov 12 15:28:06 2020 -0800 @@ -683,14 +683,14 @@ source = util.urllocalpath(source) if not dest: - raise error.Abort(_(b"empty destination path is not valid")) + raise error.InputError(_(b"empty destination path is not valid")) destvfs = vfsmod.vfs(dest, expandpath=True) if destvfs.lexists(): if not destvfs.isdir(): - raise error.Abort(_(b"destination '%s' already exists") % dest) + raise error.InputError(_(b"destination '%s' already exists") % dest) elif destvfs.listdir(): - raise error.Abort(_(b"destination '%s' is not empty") % dest) + raise error.InputError(_(b"destination '%s' is not empty") % dest) createopts = {} narrow = False