Skip to content

Commit

Permalink
fix #62 more explicit error message on info endpoint timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Sep 1, 2024
1 parent e43b89e commit 5259833
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firehose/info/endpoint_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5259833

Please sign in to comment.