From 5705ea98594d89f375868fe2f44ce2eab0e072b2 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Tue, 13 Jan 2015 00:36:33 -0800 Subject: [PATCH] style(init): -> errRepoExists @jbenet --- cmd/ipfs/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/ipfs/init.go b/cmd/ipfs/init.go index ee3bd92d4..1791b28cf 100644 --- a/cmd/ipfs/init.go +++ b/cmd/ipfs/init.go @@ -58,7 +58,7 @@ var initCmd = &cmds.Command{ }, } -var errCannotInitConfigExists = debugerror.New(`ipfs configuration file already exists! +var errRepoExists = debugerror.New(`ipfs configuration file already exists! Reinitializing would overwrite your keys. (use -f to force overwrite) `) @@ -88,7 +88,7 @@ func doInit(repoRoot string, force bool, nBitsForKeypair int) (interface{}, erro u.POut("initializing ipfs node at %s\n", repoRoot) if fsrepo.IsInitialized(repoRoot) && !force { - return nil, errCannotInitConfigExists + return nil, errRepoExists } conf, err := initConfig(nBitsForKeypair)