Trying to work out why it cannot find user
This commit is contained in:
parent
13fc08ad69
commit
4ae529de85
6
test.go
6
test.go
|
@ -45,7 +45,11 @@ func (t TestSettings) testYoutubeSong() {
|
||||||
// }
|
// }
|
||||||
dummyUser := dj.client.Users.Find("bottleotoast")
|
dummyUser := dj.client.Users.Find("bottleotoast")
|
||||||
if dummyUser == nil {
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue