Mercurial > hg
diff hgext/largefiles/overrides.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 | 2c86b9587740 |
children | 89a2afe31e82 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Oct 08 15:35:44 2020 -0700 +++ b/hgext/largefiles/overrides.py Thu Oct 08 13:37:31 2020 -0700 @@ -734,7 +734,7 @@ try: result = orig(ui, repo, pats, opts, rename) except error.Abort as e: - if pycompat.bytestr(e) != _(b'no files to copy'): + if e.message != _(b'no files to copy'): raise e else: nonormalfiles = True @@ -851,7 +851,7 @@ lfdirstate.add(destlfile) lfdirstate.write() except error.Abort as e: - if pycompat.bytestr(e) != _(b'no files to copy'): + if e.message != _(b'no files to copy'): raise e else: nolfiles = True