login.go
changeset 128 a5a00fad7a32
parent 125 2bbb72b9ebf6
child 129 0d4544ce7e5e
--- a/login.go	Sun Apr 16 02:12:38 2017 +0200
+++ b/login.go	Sun Apr 16 13:37:37 2017 +0200
@@ -18,6 +18,10 @@
 
 // LoginBasic does basic user authentication
 func (g *Client) LoginBasic(username, password string, scopes []string) error {
+	if g == nil {
+		return fmt.Errorf("use of uninitialized gondole client")
+	}
+
 	if username == "" {
 		return fmt.Errorf("missing username")
 	}