From 24556cb0e34c715e58da6e910a6f50c0a917e292 Mon Sep 17 00:00:00 2001 From: ilija Date: Thu, 14 Sep 2023 15:01:11 +0200 Subject: [PATCH] Use %q in (c *LegacyChains) Get() for better error msg output --- core/chains/evm/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chains/evm/chain.go b/core/chains/evm/chain.go index dfb7026f1c7..6a948a4cdd0 100644 --- a/core/chains/evm/chain.go +++ b/core/chains/evm/chain.go @@ -105,7 +105,7 @@ func (c *LegacyChains) ChainNodeConfigs() evmtypes.Configs { // TODO BCF-2507 unify the type system func (c *LegacyChains) Get(id string) (Chain, error) { if id == nilBigInt.String() || id == emptyString { - return nil, fmt.Errorf("invalid chain id requested: %s", id) + return nil, fmt.Errorf("invalid chain id requested: %q", id) } return c.ChainsKV.Get(id) }