Mercurial > public > mercurial-scm > hg-stable
diff mercurial/mail.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 | 7edf68862fe3 |
line wrap: on
line diff
--- a/mercurial/mail.py Sat Apr 07 21:21:03 2018 +0900 +++ b/mercurial/mail.py Sat Apr 07 21:23:42 2018 +0900 @@ -150,7 +150,7 @@ if ret: raise error.Abort('%s %s' % ( os.path.basename(program.split(None, 1)[0]), - procutil.explainexit(ret)[0])) + procutil.explainexit(ret))) def _mbox(mbox, sender, recipients, msg): '''write mails to mbox'''