-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: properly propagate fmt.Errorf errors + use errors.New #16537
chore: properly propagate fmt.Errorf errors + use errors.New #16537
Conversation
This comment has been minimized.
This comment has been minimized.
811db3e
to
c49f24a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, but build is failing.
CHANGELOG.md
Outdated
@@ -40,7 +40,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ | |||
|
|||
### Improvements | |||
|
|||
* (all) [#16497](https://github.com/cosmos/cosmos-sdk/pull/16497) Removed all exported vestiges of `sdk.MustSortJSON` and `sdk.SortJSON`. | |||
* (all) [#16537](https://github.com/cosmos/cosmos-sdk/pull/16497) Removed all exported vestiges of `sdk.MustSortJSON` and `sdk.SortJSON`. | |||
* (all) [#16497](https://github.com/cosmos/cosmos-sdk/pull/16537) Properly propagated fmt.Errorf errors + using errors.New where appropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pr numbers seem to be inverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still they are still inverted.
d1a7b10
to
484b30e
Compare
Thanks for the reviews @julienrbrt and @alexanderbez! |
one more linting issue then we are good. Thanks for sticking through this |
Changes usages of fmt.Errorf that tried to propagate errors using format specifiers "%s" or "%v", and unnecessarily invoked err.Error() to pass into "%s" While here, replaced some instances of fmt.Errorf(string) with errors.New(string) Fixes #16536
484b30e
to
fe41652
Compare
Thanks for the reviews @tac0turtle @facundomedica @julienrbrt @alexanderbez. All good to go shortly! |
the test failure need to be button upped |
Changes usages of fmt.Errorf that tried to propagate errors using format specifiers "%s" or "%v", and unnecessarily invoked err.Error() to pass into "%s"
While here, replaced some instances of
with
Fixes #16536