From 45572a28635e63559dcc3b60c30c6ce09acb0a90 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Thu, 8 Dec 2016 12:32:05 +0100 Subject: remote: fix Connect, returned nil error on failure. (#167) --- remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote.go') diff --git a/remote.go b/remote.go index 2c8a731..3508ed9 100644 --- a/remote.go +++ b/remote.go @@ -51,7 +51,7 @@ func (r *Remote) Connect() error { var err error r.fetchSession, err = r.client.NewFetchPackSession(r.endpoint) if err != nil { - return nil + return err } return r.retrieveAdvertisedReferences() -- cgit