From 0402a75d20d1c35833617c869b5bd4bedf48f177 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 16 Nov 2022 11:34:29 +0300 Subject: [PATCH] cli: fix error message formatting This is not very useful: could not initialize blockchain: %!w([]interface {}=[0xc0018da2c0]) --- cli/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/server/server.go b/cli/server/server.go index c5f44f1ae..9d47ab47a 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -636,7 +636,7 @@ func initBlockChain(cfg config.Config, log *zap.Logger) (*core.Blockchain, stora 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 }