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

rpctypes: use status.Error() instead of status.New().Err() #15384

Merged
merged 1 commit into from
Mar 3, 2023
Merged

rpctypes: use status.Error() instead of status.New().Err() #15384

merged 1 commit into from
Mar 3, 2023

Conversation

xakdwch
Copy link
Contributor

@xakdwch xakdwch commented Mar 2, 2023

status.Error() returns an error representing error code and msg, status.Error() is better than status.New().Err().

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

status.Error() returns an error representing error code and msg,
status.Error() is better than status.New().Err().

Signed-off-by: xakdwch <[email protected]>
@ptabor ptabor merged commit c0f37bb into etcd-io:main Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants