Commit 81f84d6c authored by Henry's avatar Henry

updated error messages and explicit import names

parent 24e1e6d1
...@@ -5,9 +5,10 @@ import ( ...@@ -5,9 +5,10 @@ import (
"fmt" "fmt"
"os" "os"
"runtime/pprof" "runtime/pprof"
"time"
flag "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag" 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" 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" 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) { ...@@ -134,9 +135,8 @@ func localNode(confdir string, online bool) (*core.IpfsNode, error) {
if err != check.NoUpdateAvailable { if err != check.NoUpdateAvailable {
log.Error("Error while checking for update: %v\n", err) log.Error("Error while checking for update: %v\n", err)
return nil, err return nil, err
} }
log.Notice("No update available") log.Notice("No update available, checked on %s", time.Now())
} }
config.RecordUpdateCheck(cfg, filename) config.RecordUpdateCheck(cfg, filename)
......
...@@ -7,9 +7,9 @@ import ( ...@@ -7,9 +7,9 @@ import (
"github.com/jbenet/go-ipfs/config" "github.com/jbenet/go-ipfs/config"
u "github.com/jbenet/go-ipfs/util" u "github.com/jbenet/go-ipfs/util"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/coreos/go-semver/semver" semver "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" update "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" check "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/check"
) )
const ( const (
...@@ -32,7 +32,7 @@ func init() { ...@@ -32,7 +32,7 @@ func init() {
var err error var err error
currentVersion, err = parseVersion() currentVersion, err = parseVersion()
if err != nil { 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) 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