Skip to content

Commit

Permalink
lowercase error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cce committed Nov 7, 2023
1 parent 6082c16 commit 623d4f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catchup/universalFetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ type noBlockForRoundError struct {
latest, round basics.Round
}

func (noBlockForRoundError) Error() string { return "No block available for given round" }
func (noBlockForRoundError) Error() string { return "no block available for given round" }

// HTTPFetcher implements FetcherClient doing an HTTP GET of the block
type HTTPFetcher struct {
Expand Down
2 changes: 1 addition & 1 deletion catchup/universalFetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestUGetBlockHTTP(t *testing.T) {
require.Error(t, noBlockForRoundError{}, err)
require.Equal(t, next+1, err.(noBlockForRoundError).round)
require.Equal(t, next, err.(noBlockForRoundError).latest)
require.Contains(t, err.Error(), "No block available for given round")
require.Contains(t, err.Error(), "no block available for given round")
require.Nil(t, block)
require.Nil(t, cert)
require.Equal(t, int64(duration), int64(0))
Expand Down

0 comments on commit 623d4f1

Please sign in to comment.