changeset 47418 | 22e21deed474 |
parent 47307 | 13dd5bb5492a |
child 47419 | 0e4e9c1b4cc8 |
--- a/mercurial/transaction.py Mon Jun 07 21:09:31 2021 +0200 +++ b/mercurial/transaction.py Wed Jun 09 01:12:03 2021 +0200 @@ -94,8 +94,9 @@ try: util.copyfile(backuppath, filepath, checkambig=checkambig) backupfiles.append(b) - except IOError: - report(_(b"failed to recover %s\n") % f) + except IOError as exc: + e_msg = stringutil.forcebytestr(exc) + report(_(b"failed to recover %s (%s)\n") % (f, e_msg)) else: target = f or b try: