Skip to content

Commit

Permalink
docs: fix error example (cosmos#9990)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo authored Aug 24, 2021
1 parent 00f987a commit 2a36280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/building-modules/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ of errors is handled via the `types/errors` package.

Example:

+++ https://github.com/cosmos/cosmos-sdk/blob/v0.38.1/x/distribution/types/errors.go#L1-L21
+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0/x/distribution/types/errors.go#L1-L21

Each custom module error must provide the codespace, which is typically the module name
(e.g. "distribution") and is unique per module, and a uint32 code. Together, the codespace and code
Expand Down

0 comments on commit 2a36280

Please sign in to comment.