diff mercurial/ui.py @ 37463:bbd240f81ac5

procutil: make explainexit() simply return a message (API) Almost all callers want it.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 07 Apr 2018 21:23:42 +0900
parents 6890b7e991a4
children c6904da6ab15
line wrap: on
line diff
--- a/mercurial/ui.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/mercurial/ui.py	Sat Apr 07 21:23:42 2018 +0900
@@ -1501,7 +1501,7 @@
             rc = self._runsystem(cmd, environ=environ, cwd=cwd, out=out)
         if rc and onerr:
             errmsg = '%s %s' % (os.path.basename(cmd.split(None, 1)[0]),
-                                procutil.explainexit(rc)[0])
+                                procutil.explainexit(rc))
             if errprefix:
                 errmsg = '%s: %s' % (errprefix, errmsg)
             raise onerr(errmsg)