diff hgext/bugzilla.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 00e4bd97b095
children 7370f302be71
line wrap: on
line diff
--- a/hgext/bugzilla.py	Sat Apr 07 21:21:03 2018 +0900
+++ b/hgext/bugzilla.py	Sat Apr 07 21:23:42 2018 +0900
@@ -534,7 +534,7 @@
             if ret:
                 self.ui.warn(out)
                 raise error.Abort(_('bugzilla notify command %s') %
-                                  procutil.explainexit(ret)[0])
+                                  procutil.explainexit(ret))
         self.ui.status(_('done\n'))
 
     def get_user_id(self, user):