From 26eebf47d540f377f221ddaf4f4d8f49956d1675 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 5 Jun 2022 22:45:20 -0700 Subject: [PATCH] Pass back actual error payload --- auth/indieauth/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/indieauth/client.go b/auth/indieauth/client.go index 6e70f8c92..ac8869927 100644 --- a/auth/indieauth/client.go +++ b/auth/indieauth/client.go @@ -68,7 +68,7 @@ func HandleCallbackCode(code, state string) (*Request, *Response, error) { var response Response if err := json.Unmarshal(body, &response); err != nil { - return nil, nil, errors.Wrap(err, "unable to parse IndieAuth response") + return nil, nil, errors.Wrap(err, "unable to parse IndieAuth response: "+string(body)) } if response.Error != "" || response.ErrorDescription != "" {