mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
style(init): -> errRepoExists
@jbenet
This commit is contained in:
parent
89afdabb7e
commit
5705ea9859
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user