# HG changeset patch # User Steve Borho # Date 1252976023 18000 # Node ID bc6b0fef9495b3944580a6bd26c7adecc87c3f88 # Parent 080227f584a140b2476d42346be9e9fd1c5649fe windows: provide filename in IOError exceptions This brings the Windows posixfile errors in line with the errors on other platforms. diff -r 080227f584a1 -r bc6b0fef9495 mercurial/windows.py --- a/mercurial/windows.py Sun Sep 13 17:23:47 2009 +0200 +++ b/mercurial/windows.py Mon Sep 14 19:53:43 2009 -0500 @@ -17,7 +17,7 @@ try: return osutil.posixfile(name, mode, buffering) except WindowsError, err: - raise IOError(err.errno, err.strerror) + raise IOError(err.errno, '%s: %s' % (name, err.strerror)) posixfile.__doc__ = osutil.posixfile.__doc__ class winstdout(object):