patch: error message in light client (#9771)

Co-authored-by: peter <peter.lai@bitstreetx.com>
Co-authored-by: Lasaro Camargos <lasaro@informal.systems>
This commit is contained in:
Peter Lai
2022-11-29 20:41:16 +08:00
committed by GitHub
parent 790132a7d8
commit fee53a074d

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
}