aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2016-12-08 12:32:05 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2016-12-08 12:32:05 +0100
commit45572a28635e63559dcc3b60c30c6ce09acb0a90 (patch)
tree8418db576df2a3dcc2523cfe47a3ab4eef3f5283 /remote.go
parent01ea726be6ed745a21c88fd61fc5e2a62c4ceb88 (diff)
downloadgo-git-45572a28635e63559dcc3b60c30c6ce09acb0a90.tar.gz
remote: fix Connect, returned nil error on failure. (#167)
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
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()