diff --git a/amember/api.go b/amember/api.go index a69aa44..46bf4ac 100644 --- a/amember/api.go +++ b/amember/api.go @@ -111,6 +111,12 @@ func doRequest[R any](endpoint string, query url.Values) (R, error) { return val, nil } else { + b, err := io.ReadAll(res.Body) + if err != nil { + return zero, err + } + log.Println("aMember Pro error: ", string(b)) + return zero, fmt.Errorf("http error %d %s", res.StatusCode, res.Status) } }