diff hgext/convert/common.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 a8a902d7176e
children 39ced3ef586d
line wrap: on
line diff
--- a/hgext/convert/common.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/hgext/convert/common.py	Sat Apr 07 21:23:42 2018 +0900
@@ -440,7 +440,7 @@
             if output:
                 self.ui.warn(_('%s error:\n') % self.command)
                 self.ui.warn(output)
-            msg = procutil.explainexit(status)[0]
+            msg = procutil.explainexit(status)
             raise error.Abort('%s %s' % (self.command, msg))
 
     def run0(self, cmd, *args, **kwargs):