More debug pls
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
f574863601
commit
90a00f93d1
|
@ -260,7 +260,8 @@ func TwitchAdminHandler(response http.ResponseWriter, request *http.Request) {
|
||||||
if len(usersObject.Data) != 1 {
|
if len(usersObject.Data) != 1 {
|
||||||
response.WriteHeader(500)
|
response.WriteHeader(500)
|
||||||
response.Header().Add("Content-type", "text/plain")
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue