mercurial/patch.py
changeset 43735 7eb701e355bd
parent 43649 d649de29f1ff
parent 43723 eab0b7383cd3
child 43787 be8552f25cab
--- a/mercurial/patch.py	Thu Nov 21 15:46:35 2019 -0500
+++ b/mercurial/patch.py	Fri Nov 22 21:42:04 2019 +0900
@@ -2290,7 +2290,7 @@
             try:
                 current_file = patcher(ui, gp, backend, store, eolmode=eolmode)
             except PatchError as inst:
-                ui.warn(str(inst) + b'\n')
+                ui.warn(stringutil.forcebytestr(inst) + b'\n')
                 current_file = None
                 rejects += 1
                 continue