Browse Source

More debug pls

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
master v0.0.6
Martyn 1 year ago
parent
commit
90a00f93d1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      internal/webserver/webserver.go

+ 2
- 1
internal/webserver/webserver.go View File

@ -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