From 7af6e23569d9f00b7ed223b50b481579fe1673a3 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Mon, 29 Nov 2021 12:41:13 -0800 Subject: [PATCH] utils/httputil: Fix build error from previous commit --- utils/httputil/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/httputil/errors.go b/utils/httputil/errors.go index a9cfb8c..3013759 100644 --- a/utils/httputil/errors.go +++ b/utils/httputil/errors.go @@ -47,7 +47,7 @@ type HTTPError struct { func (err HTTPError) Error() string { switch { - case err.Errors != "": + case err.Errors != nil: return fmt.Sprintf("Discord %d error: %s: %s", err.Status, err.Message, err.Errors) case err.Message != "":