a socket error might be a tuple or a singleton
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 06 Sep 2008 00:45:13 +0200
changeset 6993 b9d012ce8578
parent 6990 ca6103c5eefd
child 6994 bf727bab38b9
a socket error might be a tuple or a singleton
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Fri Sep 05 11:02:12 2008 +0200
+++ b/mercurial/dispatch.py	Sat Sep 06 00:45:13 2008 +0200
@@ -90,7 +90,7 @@
             else:
                 raise
     except socket.error, inst:
-        ui.warn(_("abort: %s\n") % inst[1])
+        ui.warn(_("abort: %s\n") % inst[-1])
     except IOError, inst:
         if hasattr(inst, "code"):
             ui.warn(_("abort: %s\n") % inst)