Skip to content

Commit

Permalink
update pruning error message (#448)
Browse files Browse the repository at this point in the history
* update pruning error message

* fix lint

* fix lint
  • Loading branch information
colin-axner authored Mar 11, 2021
1 parent dd07de1 commit f4e722e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion relayer/ibc-client.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ func (c *Chain) InjectTrustedFields(dst *Chain, header *tmclient.Header) (*tmcli
// query TrustedValidators at Trusted Height from srcChain
trustedHeader, err := c.GetLightSignedHeaderAtHeight(int64(h.TrustedHeight.RevisionHeight))
if err != nil {
return nil, fmt.Errorf("failed to get trusted header, please ensure the connected node is pruning nothing: %w", err)
return nil, fmt.Errorf(
"failed to get trusted header, please ensure header at the height %d has not been pruned by the connected node: %w",
h.TrustedHeight.RevisionHeight, err,
)
}

// inject TrustedValidators into header
Expand Down

0 comments on commit f4e722e

Please sign in to comment.