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

[Bugfix] Make all error code bigger than 1 #417

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Conversation

yun-yeo
Copy link
Contributor

@yun-yeo yun-yeo commented Oct 12, 2020

Summary of changes

https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/errors.md#registration
All error code must be greater than one, as a code value of one is reserved for internal errors.

close #408

Report of required housekeeping

  • Github issue OR spec proposal link
  • Wrote tests
  • Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]

(FOR ADMIN) Before merging

  • Added appropriate labels to PR
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Confirm added tests are consistent with the intended behavior of changes
  • Ensure all tests pass

@yun-yeo yun-yeo added the bug Something isn't working label Oct 12, 2020
@yun-yeo yun-yeo requested a review from hanjukim October 12, 2020 06:56
@yun-yeo yun-yeo self-assigned this Oct 12, 2020
@hanjukim hanjukim merged commit 9695e97 into develop Oct 19, 2020
@hanjukim hanjukim deleted the bugfix/fix-error-code branch October 19, 2020 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] store code always return internal error
2 participants