More debug pls

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
master v0.0.6
Martyn 2 years ago
parent
commit
90a00f93d1
  1. 3
      internal/webserver/webserver.go

3
internal/webserver/webserver.go

@ -260,7 +260,8 @@ func TwitchAdminHandler(response http.ResponseWriter, request *http.Request) {
if len(usersObject.Data) != 1 {
response.WriteHeader(500)
response.Header().Add("Content-type", "text/plain")
fmt.Fprint(response, "ERROR: Twitch returned not 1 user for the request!")
fmt.Fprint(response, "ERROR: Twitch returned not 1 user for the request!\n---\n")
fmt.Fprint(response, usersObject.Data)
return
}

Loading…
Cancel
Save