From 6b332c3cb6fd832f903cab0bfd9dcf49773f49ad Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 29 Nov 2022 07:54:02 -0500 Subject: [PATCH] patch: error message in light client (#9771) (#9786) Co-authored-by: peter Co-authored-by: Lasaro Camargos (cherry picked from commit fee53a074d685a8c86d5a270d7803d0aa0423b5a) Co-authored-by: Peter Lai --- light/rpc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light/rpc/client.go b/light/rpc/client.go index 4a845a5da..dcdd99791 100644 --- a/light/rpc/client.go +++ b/light/rpc/client.go @@ -556,7 +556,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 }