diff --git a/config/config.go b/config/config.go index ebf08bc..b8968d4 100644 --- a/config/config.go +++ b/config/config.go @@ -91,7 +91,7 @@ func Get() (*Config, error) { overrideExchangeSymbolsMap := map[string]map[string]string{} err := json.Unmarshal([]byte(overrideExchangeSymbolsMapJson), &overrideExchangeSymbolsMap) if err != nil { - return nil, fmt.Errorf("failed to parse EXCHANGE_SYMBOLS_MAP: invalid json") + return nil, fmt.Errorf("failed to parse EXCHANGE_SYMBOLS_MAP: %w", err) } for exchange, symbolMap := range overrideExchangeSymbolsMap { conf.ExchangesToPairToSymbolMap[exchange] = map[asset.Pair]types.Symbol{} diff --git a/config/config_test.go b/config/config_test.go index e1de059..d7afc1d 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -26,7 +26,7 @@ func TestConfig_Get(t *testing.T) { } func TestConfig_Without_EXCHANGE_SYMBOLS_MAP(t *testing.T) { - + os.Unsetenv("EXCHANGE_SYMBOLS_MAP") os.Setenv("CHAIN_ID", "nibiru-localnet-0") os.Setenv("GRPC_ENDPOINT", "localhost:9090") os.Setenv("WEBSOCKET_ENDPOINT", "ws://localhost:26657/websocket")