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
395f8a6e
Commit
395f8a6e
authored
Nov 16, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(errors) import as errors
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
9a38b284
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/config.go
config/config.go
+2
-2
No files found.
config/config.go
View file @
395f8a6e
...
...
@@ -9,7 +9,7 @@ import (
"path/filepath"
u
"github.com/jbenet/go-ipfs/util"
"github.com/jbenet/go-ipfs/util/debugerror"
errors
"github.com/jbenet/go-ipfs/util/debugerror"
)
var
log
=
u
.
Logger
(
"config"
)
...
...
@@ -129,7 +129,7 @@ func (i *Identity) DecodePrivateKey(passphrase string) (crypto.PrivateKey, error
func
Load
(
filename
string
)
(
*
Config
,
error
)
{
// if nothing is there, fail. User must run 'ipfs init'
if
_
,
err
:=
os
.
Stat
(
filename
);
os
.
IsNotExist
(
err
)
{
return
nil
,
debug
error
.
New
(
"ipfs not initialized, please run 'ipfs init'"
)
return
nil
,
error
s
.
New
(
"ipfs not initialized, please run 'ipfs init'"
)
}
var
cfg
Config
...
...
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