Trying to work out why it cannot find user

This commit is contained in:
MichaelOultram 2015-08-12 21:51:47 +01:00
parent 13fc08ad69
commit 4ae529de85

View file

@ -45,7 +45,11 @@ func (t TestSettings) testYoutubeSong() {
// }
dummyUser := dj.client.Users.Find("bottleotoast")
if dummyUser == nil {
fmt.Printf("User does not exist")
fmt.Printf("User does not exist, printing users\n")
for _, user := range dj.client.Users {
fmt.Printf(user.Name + "\n")
}
fmt.Printf("End of user list\n")
os.Exit(1)
}