mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
windows: provide filename in IOError exceptions
This brings the Windows posixfile errors in line with the errors on other platforms.
This commit is contained in:
parent
54f5a65629
commit
68d79882b6
@ -17,7 +17,7 @@ def posixfile(name, mode='r', buffering=-1):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user