# HG changeset patch # User Benoit Boissinot # Date 2008-09-05 22:45:13 # Node ID b9d012ce8578cec2e0788ed898f1d42389fafab1 # Parent ca6103c5eefda055952e41cf32cb265ba620a847 a socket error might be a tuple or a singleton diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -90,7 +90,7 @@ def _runcatch(ui, args): 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)