From 52598335362e41e22478430dc9aa2738f2137a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Sun, 1 Sep 2024 13:24:49 -0400 Subject: [PATCH] fix #62 more explicit error message on info endpoint timeout --- firehose/info/endpoint_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/firehose/info/endpoint_info.go b/firehose/info/endpoint_info.go index f98b329..e57ab9b 100644 --- a/firehose/info/endpoint_info.go +++ b/firehose/info/endpoint_info.go @@ -222,6 +222,7 @@ func (s *InfoServer) init(ctx context.Context, fhub *hub.ForkableHub, mergedBloc return fmt.Errorf("%w -- use --ignore-advertise-validation to skip these checks", err) } case <-ctx.Done(): + return fmt.Errorf("%w: no block found for first streamable block %d in the stores or on live source -- use --ignore-advertise-validation to skip these checks", ctx.Err(), s.response.FirstStreamableBlockNum) } if err := validateInfoResponse(s.response); err != nil {