Skip to content

Commit

Permalink
patch: error message in light client (#9771) (#9785)
Browse files Browse the repository at this point in the history
Co-authored-by: peter <peter.lai@bitstreetx.com>
Co-authored-by: Lasaro Camargos <lasaro@informal.systems>
(cherry picked from commit fee53a0)

Co-authored-by: Peter Lai <alk03073135@gmail.com>
  • Loading branch information
mergify[bot] and sc0Vu committed Nov 29, 2022
1 parent 41afc30 commit 059798a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion light/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ func (c *Client) updateLightClientIfNeededTo(ctx context.Context, height *int64)
l, err = c.lc.VerifyLightBlockAtHeight(ctx, *height, time.Now())
}
if err != nil {
return nil, fmt.Errorf("failed to update light client to %d: %w", height, err)
return nil, fmt.Errorf("failed to update light client to %d: %w", *height, err)
}
return l, nil
}
Expand Down

0 comments on commit 059798a

Please sign in to comment.