Skip to content

Commit

Permalink
Improve error message if no user with the given ID was found for user…
Browse files Browse the repository at this point in the history
…name cache
  • Loading branch information
pajlada committed Jul 3, 2021
1 parent 4c802e0 commit 81f4c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/twitchapiclient/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func loadUsername(helixClient *helix.Client) func(key string, r *http.Request) (
}

if len(response.Data.Users) != 1 {
return nil, cache.NoSpecialDur, errors.New("too many users returned")
return nil, cache.NoSpecialDur, errors.New("no user with this ID found")
}

user := response.Data.Users[0]
Expand Down

0 comments on commit 81f4c1d

Please sign in to comment.