Skip to content

Commit

Permalink
reused error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Nov 8, 2023
1 parent 971d81d commit 4143eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctxc/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) {

// special case for pending logs
if beginPending && !endPending {
return nil, errors.New("invalid block range")
return nil, errInvalidBlockRange
}

// Short-cut if all we care about is pending logs
Expand Down

0 comments on commit 4143eb6

Please sign in to comment.