1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

discord: Make OverboundError.Error() have a pointer receiver (#232)

This commit is contained in:
samhza 2021-06-18 03:15:02 -04:00 committed by GitHub
parent 37b8871c65
commit 1b12057e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ type OverboundError struct {
var _ error = (*OverboundError)(nil)
func (e OverboundError) Error() string {
func (e *OverboundError) Error() string {
if e.Thing == "" {
return fmt.Sprintf("Overbound error: %d > %d", e.Count, e.Max)
}