diff mercurial/match.py @ 45682:d2e1dcd4490d

errors: name arguments to Abort constructor Differential Revision: https://phab.mercurial-scm.org/D9179
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 08 Oct 2020 13:37:31 -0700
parents 4d1634e59f13
children 89a2afe31e82
line wrap: on
line diff
--- a/mercurial/match.py	Thu Oct 08 15:35:44 2020 -0700
+++ b/mercurial/match.py	Thu Oct 08 13:37:31 2020 -0700
@@ -355,7 +355,10 @@
             except error.Abort as inst:
                 raise error.Abort(
                     b'%s: %s'
-                    % (pat, inst[0])  # pytype: disable=unsupported-operands
+                    % (
+                        pat,
+                        inst.message,
+                    )  # pytype: disable=unsupported-operands
                 )
             except IOError as inst:
                 if warn: