# HG changeset patch # User Mikael Berthe # Date 1493642037 -7200 # Node ID 4088535c4c4cb7597673b2ba5043c9520ff8d420 # Parent 2ffe0d622db936f5dd88b6c821b3e9276ca3abd9 Be more verbose when connection fails Wrap the initial error message so we can guess if it's a credential issue or a server one. diff -r 2ffe0d622db9 -r 4088535c4c4c cmd/madon.go --- a/cmd/madon.go Mon May 01 13:06:31 2017 +0200 +++ b/cmd/madon.go Mon May 01 14:33:57 2017 +0200 @@ -55,7 +55,7 @@ } // Check instance if _, err := gClient.GetCurrentInstance(); err != nil { - return errors.New("could not connect to server with provided app ID/secret") + return errors.Wrap(err, "could not connect to server with provided app ID/secret") } if verbose { errPrint("Using provided app ID/secret")