Show More
@@ -11,7 +11,7 b' from i18n import gettext as _' | |||||
11 | demandload(globals(), "bisect os re sys signal imp urllib pdb shlex stat") |
|
11 | demandload(globals(), "bisect os re sys signal imp urllib pdb shlex stat") | |
12 | demandload(globals(), "fancyopts ui hg util lock revlog bundlerepo") |
|
12 | demandload(globals(), "fancyopts ui hg util lock revlog bundlerepo") | |
13 | demandload(globals(), "difflib patch time help mdiff tempfile") |
|
13 | demandload(globals(), "difflib patch time help mdiff tempfile") | |
14 | demandload(globals(), "traceback errno version atexit") |
|
14 | demandload(globals(), "traceback errno version atexit socket") | |
15 | demandload(globals(), "archival changegroup cmdutil hgweb.server sshserver") |
|
15 | demandload(globals(), "archival changegroup cmdutil hgweb.server sshserver") | |
16 |
|
16 | |||
17 | class UnknownCommand(Exception): |
|
17 | class UnknownCommand(Exception): | |
@@ -3273,6 +3273,8 b' def dispatch(args):' | |||||
3273 | u.warn(_("\nbroken pipe\n")) |
|
3273 | u.warn(_("\nbroken pipe\n")) | |
3274 | else: |
|
3274 | else: | |
3275 | raise |
|
3275 | raise | |
|
3276 | except socket.error, inst: | |||
|
3277 | u.warn(_("abort: %s\n") % inst[1]) | |||
3276 | except IOError, inst: |
|
3278 | except IOError, inst: | |
3277 | if hasattr(inst, "code"): |
|
3279 | if hasattr(inst, "code"): | |
3278 | u.warn(_("abort: %s\n") % inst) |
|
3280 | u.warn(_("abort: %s\n") % inst) |
General Comments 0
You need to be logged in to leave comments.
Login now