mercurial/hg.py
changeset 45847 d68618954ade
parent 45605 00402df57db7
child 45942 89a2afe31e82
--- 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