Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1325:57220daf40e9
Move urllib error handling from revlog into statichttprepo, where it belongs.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 23 Sep 2005 00:05:16 -0700 |
parents | b47f96a178a3 |
children | cfae1ed2d61f |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Sep 22 23:33:26 2005 -0700 +++ b/mercurial/commands.py Fri Sep 23 00:05:16 2005 -0700 @@ -2160,6 +2160,8 @@ u.warn("abort: %s\n" % inst) elif hasattr(inst, "reason"): u.warn("abort: error: %s\n" % inst.reason[1]) + elif getattr(inst, "strerror", None): + u.warn("abort: %s\n" % inst.strerror) elif hasattr(inst, "args") and inst[0] == errno.EPIPE: if u.debugflag: u.warn("broken pipe\n")