Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io/ioutil: WriteFile ignores errors from Close #5644

Closed
gopherbot opened this issue Jun 5, 2013 · 2 comments
Closed

io/ioutil: WriteFile ignores errors from Close #5644

gopherbot opened this issue Jun 5, 2013 · 2 comments

Comments

@gopherbot
Copy link

by robryk:

WriteFile currently ignores any errors os.File.Close() may return. That Close can return
errors that mean that the previous write in fact could not be committed to storage, so
we should pass that error on.
@gopherbot
Copy link
Author

Comment 1 by robryk:

The following CL should fix this issue:
https://golang.org/cl/10067043
I am unable to come up with a way of testing this: I don't see a way of causing a newly
created file to return an error while being closed.

@robpike
Copy link
Contributor

robpike commented Jun 6, 2013

Comment 2:

This issue was closed by revision 9614119.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants