Skip to content

Commit 059798a

Browse files
mergify[bot]sc0Vu
andauthored
patch: error message in light client (#9771) (#9785)
Co-authored-by: peter <[email protected]> Co-authored-by: Lasaro Camargos <[email protected]> (cherry picked from commit fee53a0) Co-authored-by: Peter Lai <[email protected]>
1 parent 41afc30 commit 059798a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

light/rpc/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ func (c *Client) updateLightClientIfNeededTo(ctx context.Context, height *int64)
590590
l, err = c.lc.VerifyLightBlockAtHeight(ctx, *height, time.Now())
591591
}
592592
if err != nil {
593-
return nil, fmt.Errorf("failed to update light client to %d: %w", height, err)
593+
return nil, fmt.Errorf("failed to update light client to %d: %w", *height, err)
594594
}
595595
return l, nil
596596
}

0 commit comments

Comments
 (0)