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

Clear up documentation on status.FromError #4864

Closed
wants to merge 1 commit into from
Closed

Clear up documentation on status.FromError #4864

wants to merge 1 commit into from

Conversation

scspijker
Copy link

@scspijker scspijker commented Oct 12, 2021

Documentation stated

// Otherwise, ok is false and a Status is returned with codes.Unknown and
// the original error message.

This read as ok being false when err is not nil. However, ok is only false when err is not nil and could not be parsed (though the GRPCStatus() method).
Clarified.

RELEASE NOTES: none

Documentation stated

> // Otherwise, ok is false and a Status is returned with codes.Unknown and
> // the original error message.

This read as `ok` being `false` when `err` is not nil. However, `ok` is only `false` when `err` is not nil _and_ could not be parsed (though the `GRPCStatus()` method).
Clarified.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 12, 2021

CLA Signed

The committers are authorized under a signed CLA.

@easwars easwars added the Type: Documentation Documentation or examples label Oct 12, 2021
@easwars easwars added this to the 1.42 Release milestone Oct 12, 2021
@dfawley
Copy link
Member

dfawley commented Oct 15, 2021

This is not the first time someone was confused by the wording of this, and we've made some changes here in the past to try to help, apparently in vain. I've tried to make this extremely clear via #4880.

@dfawley dfawley closed this Oct 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Documentation Documentation or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants