Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Ralston committed Mar 6, 2024
1 parent a37b819 commit 1b29cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amember/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func doRequest[R any](endpoint string, query url.Values) (R, error) {
if err != nil {
return zero, err
}
log.Println(pth)
req, err := http.NewRequest(http.MethodGet, pth, nil)
if err != nil {
return zero, err
Expand Down Expand Up @@ -116,7 +117,7 @@ func doRequest[R any](endpoint string, query url.Values) (R, error) {
return zero, err
}
log.Println("aMember Pro error: ", string(b))

return zero, fmt.Errorf("http error %d %s", res.StatusCode, res.Status)
}
}

0 comments on commit 1b29cd5

Please sign in to comment.