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

improve error messages #203

Merged
merged 3 commits into from
Jun 3, 2021
Merged

improve error messages #203

merged 3 commits into from
Jun 3, 2021

Conversation

colin-axner
Copy link
Contributor

Description

addresses comment

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

modules/core/04-channel/keeper/packet.go Show resolved Hide resolved
@@ -568,7 +568,7 @@ func produceVerificationArgs(

consensusState, err = GetConsensusState(store, cdc, height)
if err != nil {
return commitmenttypes.MerkleProof{}, nil, err
return commitmenttypes.MerkleProof{}, nil, sdkerrors.Wrap(err, "please ensure the proof was constructed against the height the client was updated to")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any other way to word this?

@codecov-commenter
Copy link

codecov-commenter commented May 28, 2021

Codecov Report

Merging #203 (ec5d2fa) into main (4db5fd1) will not change coverage.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #203   +/-   ##
=======================================
  Coverage   80.26%   80.26%           
=======================================
  Files         109      109           
  Lines        6485     6485           
=======================================
  Hits         5205     5205           
  Misses        925      925           
  Partials      355      355           
Impacted Files Coverage Δ
.../light-clients/07-tendermint/types/client_state.go 74.55% <0.00%> (ø)
modules/core/04-channel/keeper/packet.go 97.09% <100.00%> (ø)
modules/core/04-channel/keeper/timeout.go 93.46% <100.00%> (ø)

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@colin-axner colin-axner enabled auto-merge (squash) June 1, 2021 10:19
@colin-axner colin-axner merged commit 8320447 into main Jun 3, 2021
@colin-axner colin-axner deleted the colin/error-messages branch June 3, 2021 06:36
@fedekunze
Copy link
Contributor

we are adding a stracktrace for error messages, in case you are interested in taking a look: evmos/ethermint#50

CosmosCar pushed a commit to caelus-labs/ibc-go that referenced this pull request Nov 6, 2023
…n to ensure PENDING-CHANGELOG.md is updated on every commit to main (cosmos#203)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants