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

github: don't ignore errors from DataKit #513

Merged
merged 2 commits into from
Apr 6, 2017
Merged

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Apr 5, 2017

Lots of these functions used to ignore errors silently. This can lead
to bugs in the users of the library (e.g. we lost our 9p connection but
we think instead that the file we wanted doesn't exist). For now, I've
converted it to log errors in these cases but continue with the old
behaviour. Assuming we don't see these errors being logged, we can
change the code to raise exceptions instead.

Signed-off-by: Thomas Leonard <[email protected]>
@talex5 talex5 force-pushed the log-errors branch 2 times, most recently from 862966a to 0d4325c Compare April 5, 2017 15:53
Lots of these functions used to ignore errors silently. This can lead
to bugs in the users of the library (e.g. we lost our 9p connection but
we think instead that the file we wanted doesn't exist). For now, I've
converted it to log errors in these cases but continue with the old
behaviour. Assuming we don't see these errors being logged, we can
change the code to raise exceptions instead.

Also, updated the client to report "Can't walk from a file" as `Not_dir.

Signed-off-by: Thomas Leonard <[email protected]>
@talex5 talex5 merged commit 78994e4 into moby:master Apr 6, 2017
@talex5 talex5 deleted the log-errors branch April 6, 2017 09:41
talex5 pushed a commit to talex5/datakit that referenced this pull request Apr 20, 2017
If we can't do the operation requested, we should fail and let the
caller know.

Continues PR moby#513.

Signed-off-by: Thomas Leonard <[email protected]>
talex5 pushed a commit to talex5/datakit that referenced this pull request Apr 20, 2017
If we can't do the operation requested, we should fail and let the
caller know.

Continues PR moby#513.

Signed-off-by: Thomas Leonard <[email protected]>
talex5 pushed a commit to talex5/datakit that referenced this pull request Apr 20, 2017
If we can't do the operation requested, we should fail and let the
caller know.

Continues PR moby#513.

Signed-off-by: Thomas Leonard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants