Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
1323:60200b3fc839 | 1325:57220daf40e9 |
---|---|
2158 except IOError, inst: | 2158 except IOError, inst: |
2159 if hasattr(inst, "code"): | 2159 if hasattr(inst, "code"): |
2160 u.warn("abort: %s\n" % inst) | 2160 u.warn("abort: %s\n" % inst) |
2161 elif hasattr(inst, "reason"): | 2161 elif hasattr(inst, "reason"): |
2162 u.warn("abort: error: %s\n" % inst.reason[1]) | 2162 u.warn("abort: error: %s\n" % inst.reason[1]) |
2163 elif getattr(inst, "strerror", None): | |
2164 u.warn("abort: %s\n" % inst.strerror) | |
2163 elif hasattr(inst, "args") and inst[0] == errno.EPIPE: | 2165 elif hasattr(inst, "args") and inst[0] == errno.EPIPE: |
2164 if u.debugflag: | 2166 if u.debugflag: |
2165 u.warn("broken pipe\n") | 2167 u.warn("broken pipe\n") |
2166 else: | 2168 else: |
2167 raise | 2169 raise |