cosmos-sdk/x/auth
Tyler 40a5364ff0
refactor(auth): better error message for method handler panic (#11482)
## Description

we panic when we attempt to register a msg that does not implement sdk.Msg. However, this is not immediately apparent in the panic error string. 

This PR updates the panic to be more specific as to why it panicked. 

Closes: n/a



---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
2022-03-29 16:06:30 +00:00
..
atlas chore: add markdownlint to lint commands (#9353) 2021-05-27 15:31:04 +00:00
client chore: Better error msgs when node isn't synced (#11449) 2022-03-25 14:49:03 +01:00
keeper feat!: Ensure InitGenesis returns with non-empty validator set (#9697) 2021-10-05 12:02:51 +00:00
middleware refactor(auth): better error message for method handler panic (#11482) 2022-03-29 16:06:30 +00:00
migrations revert: Revert "feat: staking config (#10988)" (#11446) 2022-03-24 12:26:25 +01:00
signing refactor: Change SignerData.SignerIndex to PubKey (#10692) 2021-12-08 11:43:15 +00:00
simulation refactor(test)!: refactor simapp.Setup function (#9938) 2021-08-17 00:52:06 +00:00
spec docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
testutil refactor: Change SignerData.SignerIndex to PubKey (#10692) 2021-12-08 11:43:15 +00:00
tx feat: include transactions in QueryBlockByHeight (#10880) 2022-02-22 18:59:34 +00:00
types fix: dockerfile for building proto (#11452) 2022-03-25 12:35:09 +00:00
vesting fix: RegisterLegacyAminoCodec should error if Msg name is >39 chars (#11349) 2022-03-16 13:21:00 +00:00
genesis.go Enable proto JSON for genesis (#7000) 2020-08-11 14:22:30 +00:00
module_test.go feat!: Ensure InitGenesis returns with non-empty validator set (#9697) 2021-10-05 12:02:51 +00:00
module.go feat!: remove legacy handler (#9650) 2021-07-19 14:49:42 +00:00
README.md docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00

Auth

  • Auth - Authentication of accounts and transactions for Cosmos SDK applications.