@cryptotaxi247 / kubo / commits / 81f84d6ce

updated error messages and explicit import names

Henry committed Oct 20, 2014 at 18:53 UTC 81f84d6ceaa297fda589732bf9cc00925adcc139
2 files changed +7 -7
cmd/ipfs/ipfs.go
+3 -3
@@ -5,9 +5,10 @@ import (
5 "fmt"
6 "os"
7 "runtime/pprof"
8 + "time"
9
10 flag "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag"
10 - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
11 + check "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
12 commander "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander"
13 ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
14
@@ -134,9 +135,8 @@ func localNode(confdir string, online bool) (*core.IpfsNode, error) {
135 if err != check.NoUpdateAvailable {
136 log.Error("Error while checking for update: %v\n", err)
137 return nil, err
137 -
138 }
139 - log.Notice("No update available")
139 + log.Notice("No update available, checked on %s", time.Now())
140 }
141
142 config.RecordUpdateCheck(cfg, filename)
updates/updates.go
+4 -4
@@ -7,9 +7,9 @@ import (
7 "github.com/jbenet/go-ipfs/config"
8 u "github.com/jbenet/go-ipfs/util"
9
10 - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
11 - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update"
12 - "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
10 + semver "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
11 + update "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update"
12 + check "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
13 )
14
15 const (
@@ -32,7 +32,7 @@ func init() {
32 var err error
33 currentVersion, err = parseVersion()
34 if err != nil {
35 - log.Error("illegal version number in code: %q\n", Version)
35 + log.Error("invalid version number in code (must be semver): %q\n", Version)
36 os.Exit(1)
37 }
38 }