@cryptotaxi247 / kubo / commits / 5705ea985

style(init): -> errRepoExists

@jbenet

Brian Tiger Chow committed Jan 13, 2015 at 00:36 UTC 5705ea98594d89f375868fe2f44ce2eab0e072b2
1 file changed +2 -2
cmd/ipfs/init.go
+2 -2
@@ -58,7 +58,7 @@ var initCmd = &cmds.Command{
58 },
59 }
60
61 -var errCannotInitConfigExists = debugerror.New(`ipfs configuration file already exists!
61 +var errRepoExists = debugerror.New(`ipfs configuration file already exists!
62 Reinitializing would overwrite your keys.
63 (use -f to force overwrite)
64 `)
@@ -88,7 +88,7 @@ func doInit(repoRoot string, force bool, nBitsForKeypair int) (interface{}, erro
88 u.POut("initializing ipfs node at %s\n", repoRoot)
89
90 if fsrepo.IsInitialized(repoRoot) && !force {
91 - return nil, errCannotInitConfigExists
91 + return nil, errRepoExists
92 }
93
94 conf, err := initConfig(nBitsForKeypair)