From 395f8a6e506a6abb263559d1a13b3008114cee76 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow <brian.holderchow@gmail.com> Date: Sun, 16 Nov 2014 01:40:31 -0800 Subject: [PATCH] style(errors) import as errors License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com> --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 1416bb139..c409f6838 100644 --- a/config/config.go +++ b/config/config.go @@ -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, debugerror.New("ipfs not initialized, please run 'ipfs init'") + return nil, errors.New("ipfs not initialized, please run 'ipfs init'") } var cfg Config -- GitLab