--- a/mercurial/subrepo.py Thu Oct 08 15:35:44 2020 -0700
+++ b/mercurial/subrepo.py Thu Oct 08 13:37:31 2020 -0700
@@ -39,7 +39,6 @@
dateutil,
hashutil,
procutil,
- stringutil,
)
hg = None
@@ -84,9 +83,7 @@
except error.Abort as ex:
subrepo = subrelpath(self)
errormsg = (
- stringutil.forcebytestr(ex)
- + b' '
- + _(b'(in subrepository "%s")') % subrepo
+ ex.message + b' ' + _(b'(in subrepository "%s")') % subrepo
)
# avoid handling this exception by raising a SubrepoAbort exception
raise SubrepoAbort(