cli: fix error message formatting

This is not very useful:
   could not initialize blockchain: %!w([]interface {}=[0xc0018da2c0])
This commit is contained in:
Roman Khimov 2022-11-16 11:34:29 +03:00
parent bd67fe5371
commit 0402a75d20

View file

@ -636,7 +636,7 @@ func initBlockChain(cfg config.Config, log *zap.Logger) (*core.Blockchain, stora
errArgs = append(errArgs, closeErr) errArgs = append(errArgs, closeErr)
} }
return nil, nil, cli.NewExitError(fmt.Errorf(errText, errArgs), 1) return nil, nil, cli.NewExitError(fmt.Errorf(errText, errArgs...), 1)
} }
return chain, store, nil return chain, store, nil
} }