changeset 549 | 92b60cabf808 |
parent 547 | 4fc63e22b1fe |
child 553 | f2442a6a5893 |
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -908,6 +908,11 @@ def dispatch(args): u.warn("broken pipe\n") else: raise + except OSError, inst: + if hasattr(inst, "filename"): + u.warn("abort: %s: %s\n" % (inst.strerror, inst.filename)) + else: + u.warn("abort: %s\n" % inst.strerror) except TypeError, inst: # was this an argument error? tb = traceback.extract_tb(sys.exc_info()[2])