# HG changeset patch # User Matt Mackall # Date 2005-10-15 22:04:45 # Node ID 9395c2f94130635cc45d2fb0221116295981d482 # Parent ce95599eedac0b513eb07ccd55160fccb3ce1a80 Fix patch failure reporting exception diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -82,7 +82,7 @@ def patch(strip, patchname, ui): 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):