@cryptotaxi247 / kubo / commits / 395f8a6e5

style(errors) import as errors

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 16, 2014 at 01:40 UTC 395f8a6e506a6abb263559d1a13b3008114cee76
1 file changed +2 -2
config/config.go
+2 -2
@@ -9,7 +9,7 @@ import (
9 "path/filepath"
10
11 u "github.com/jbenet/go-ipfs/util"
12 - "github.com/jbenet/go-ipfs/util/debugerror"
12 + errors "github.com/jbenet/go-ipfs/util/debugerror"
13 )
14
15 var log = u.Logger("config")
@@ -129,7 +129,7 @@ func (i *Identity) DecodePrivateKey(passphrase string) (crypto.PrivateKey, error
129 func Load(filename string) (*Config, error) {
130 // if nothing is there, fail. User must run 'ipfs init'
131 if _, err := os.Stat(filename); os.IsNotExist(err) {
132 - return nil, debugerror.New("ipfs not initialized, please run 'ipfs init'")
132 + return nil, errors.New("ipfs not initialized, please run 'ipfs init'")
133 }
134
135 var cfg Config