From a5fd3459591cbb2ea5fad52175d919d9f4b81a5b Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Wed, 12 Aug 2015 21:22:55 +0100 Subject: [PATCH] Fixing build errors --- test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test.go b/test.go index 76b9b15..4c989c1 100644 --- a/test.go +++ b/test.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/layeh/gumble/gumble" "github.com/layeh/gumble/gumbleutil" + "os" "time" ) @@ -42,7 +43,10 @@ func (t TestSettings) testYoutubeSong() { // if err := dummyClient.Connect(); err != nil { // panic(err) // } - dummyUser := dj.client.Users.Find("BottleOToast") // May be nil + if dummyUser := dj.client.Users.Find("BottleOToast"); dummyUser == nil { + fmt.Printf("User does not exist") + os.Exit(1) + } // Don't judge, I used the (autogenerated) Top Tracks for United Kingdom playlist songs := map[string]string{