Skip to content

Commit

Permalink
Use %q in (c *LegacyChains) Get() for better error msg output
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Sep 14, 2023
1 parent 4982867 commit 24556cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chains/evm/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 24556cb

Please sign in to comment.