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:
parent
37b8871c65
commit
1b12057e51
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue