Fix patch failure reporting exception
authorMatt Mackall <mpm@selenic.com>
Sat, 15 Oct 2005 15:04:45 -0700
changeset 1391 9395c2f94130
parent 1390 ce95599eedac
child 1392 32d8068b3e36
Fix patch failure reporting exception
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):