From fee53a074d685a8c86d5a270d7803d0aa0423b5a Mon Sep 17 00:00:00 2001 From: Peter Lai Date: Tue, 29 Nov 2022 20:41:16 +0800 Subject: [PATCH] patch: error message in light client (#9771) Co-authored-by: peter Co-authored-by: Lasaro Camargos --- 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 920641295..779ec9cc8 100644 --- a/light/rpc/client.go +++ b/light/rpc/client.go @@ -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 }