From 667a8043c557b832b1b750a8014ee92e00cdcd65 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 6 Mar 2024 20:43:40 -0800 Subject: [PATCH] Update error messages --- protocol/x/prices/keeper/slinky_adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/x/prices/keeper/slinky_adapter.go b/protocol/x/prices/keeper/slinky_adapter.go index 9451f2a213..a64e72b2a6 100644 --- a/protocol/x/prices/keeper/slinky_adapter.go +++ b/protocol/x/prices/keeper/slinky_adapter.go @@ -48,11 +48,11 @@ func (k Keeper) GetIDForCurrencyPair(ctx sdk.Context, cp slinkytypes.CurrencyPai func (k Keeper) GetPriceForCurrencyPair(ctx sdk.Context, cp slinkytypes.CurrencyPair) (oracletypes.QuotePrice, error) { id, found := k.GetIDForCurrencyPair(ctx, cp) if !found { - return oracletypes.QuotePrice{}, fmt.Errorf("currency pair %s not found", cp.String()) + return oracletypes.QuotePrice{}, fmt.Errorf("id for currency pair %s not found", cp.String()) } mp, err := k.GetMarketPrice(ctx, uint32(id)) if err != nil { - return oracletypes.QuotePrice{}, fmt.Errorf("currency pair %s not found", cp.String()) + return oracletypes.QuotePrice{}, fmt.Errorf("market price not found for currency pair %s", cp.String()) } return oracletypes.QuotePrice{ Price: math.NewIntFromUint64(mp.Price),