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