Pass back actual error payload

This commit is contained in:
Gabe Kangas 2022-06-05 22:45:20 -07:00
parent c841e4d32d
commit 26eebf47d5
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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 != "" {