diff mercurial/scmutil.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 ecd3f6909184
children 901e749ca0e1
line wrap: on
line diff
--- a/mercurial/scmutil.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/mercurial/scmutil.py	Sat Apr 07 21:23:42 2018 +0900
@@ -1173,7 +1173,7 @@
             src.close()
     if proc and proc.returncode != 0:
         raise error.Abort(_("extdata command '%s' failed: %s")
-                          % (cmd, procutil.explainexit(proc.returncode)[0]))
+                          % (cmd, procutil.explainexit(proc.returncode)))
 
     return data