changeset 18227 | 720308f741cb |
parent 18224 | 0f9013112eba |
child 18267 | 5bb610f87d1d |
--- a/mercurial/dispatch.py Sun Jan 06 04:04:44 2013 +0100 +++ b/mercurial/dispatch.py Mon Jan 07 02:00:29 2013 +0100 @@ -183,8 +183,8 @@ else: raise except OSError, inst: - if getattr(inst, "filename", None): - ui.warn(_("abort: %s: %s\n") % (inst.strerror, inst.filename)) + if getattr(inst, "filename", None) is not None: + ui.warn(_("abort: %s: '%s'\n") % (inst.strerror, inst.filename)) else: ui.warn(_("abort: %s\n") % inst.strerror) except KeyboardInterrupt: