Commit 81f84d6c authored by Henry's avatar Henry

updated error messages and explicit import names

parent 24e1e6d1
......@@ -5,9 +5,10 @@ import (
"fmt"
"os"
"runtime/pprof"
"time"
flag "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
check "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
commander "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander"
ma "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
......@@ -134,9 +135,8 @@ func localNode(confdir string, online bool) (*core.IpfsNode, error) {
if err != check.NoUpdateAvailable {
log.Error("Error while checking for update: %v\n", err)
return nil, err
}
log.Notice("No update available")
log.Notice("No update available, checked on %s", time.Now())
}
config.RecordUpdateCheck(cfg, filename)
......
......@@ -7,9 +7,9 @@ import (
"github.com/jbenet/go-ipfs/config"
u "github.com/jbenet/go-ipfs/util"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
semver "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver"
update "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update"
check "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
)
const (
......@@ -32,7 +32,7 @@ func init() {
var err error
currentVersion, err = parseVersion()
if err != nil {
log.Error("illegal version number in code: %q\n", Version)
log.Error("invalid version number in code (must be semver): %q\n", Version)
os.Exit(1)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment