# HG changeset patch # User Matt Mackall # Date 1129413885 25200 # Node ID 9395c2f94130635cc45d2fb0221116295981d482 # Parent ce95599eedac0b513eb07ccd55160fccb3ce1a80 Fix patch failure reporting exception diff -r ce95599eedac -r 9395c2f94130 mercurial/util.py --- a/mercurial/util.py Sat Oct 15 15:04:22 2005 -0700 +++ b/mercurial/util.py Sat Oct 15 15:04:45 2005 -0700 @@ -82,7 +82,7 @@ files.setdefault(pf, 1) code = fp.close() if code: - raise Abort("patch command failed: %s" % explain_exit(code)) + raise Abort("patch command failed: %s" % explain_exit(code)[0]) return files.keys() def binary(s):