patch: error message in light client (#9771) (#9785)

Co-authored-by: peter <peter.lai@bitstreetx.com>
Co-authored-by: Lasaro Camargos <lasaro@informal.systems>
(cherry picked from commit fee53a074d)

Co-authored-by: Peter Lai <alk03073135@gmail.com>
This commit is contained in:
mergify[bot]
2022-11-29 07:53:45 -05:00
committed by GitHub
parent 41afc3090f
commit 059798a4f5

View File

@@ -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
}