Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
81f84d6c
Commit
81f84d6c
authored
Oct 20, 2014
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated error messages and explicit import names
parent
24e1e6d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+3
-3
updates/updates.go
updates/updates.go
+4
-4
No files found.
cmd/ipfs/ipfs.go
View file @
81f84d6c
...
...
@@ -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
)
...
...
updates/updates.go
View file @
81f84d6c
...
...
@@ -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
(
"i
llegal
version number in code: %q
\n
"
,
Version
)
log
.
Error
(
"i
nvalid
version number in code
(must be semver)
: %q
\n
"
,
Version
)
os
.
Exit
(
1
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment