mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
make: revert the config showing error change
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
73a711b2df
commit
a15e9fd8c6
@ -311,7 +311,7 @@ func editConfig(filename string) error {
|
||||
func replaceConfig(r repo.Repo, file io.Reader) error {
|
||||
var cfg config.Config
|
||||
if err := json.NewDecoder(file).Decode(&cfg); err != nil {
|
||||
return errors.New("failed to decode file as config: " + err.Error())
|
||||
return errors.New("failed to decode file as config")
|
||||
}
|
||||
if len(cfg.Identity.PrivKey) != 0 {
|
||||
return errors.New("setting private key with API is not supported")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user