diff mercurial/localrepo.py @ 45865:96ca817ec192

errors: raise InputError when given non-existent paths etc Differential Revision: https://phab.mercurial-scm.org/D9328
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Nov 2020 13:22:40 -0800
parents 80f32ec8653a
children 89a2afe31e82
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Nov 12 10:35:33 2020 -0800
+++ b/mercurial/localrepo.py	Thu Nov 12 13:22:40 2020 -0800
@@ -2845,7 +2845,7 @@
             extra = {}
 
         def fail(f, msg):
-            raise error.Abort(b'%s: %s' % (f, msg))
+            raise error.InputError(b'%s: %s' % (f, msg))
 
         if not match:
             match = matchmod.always()