From d468adcb75b99b6fe5d52736e16337db4e11de80 Mon Sep 17 00:00:00 2001 From: vro <168573323+golangisfun123@users.noreply.github.com> Date: Sun, 28 Jul 2024 10:25:20 -0500 Subject: [PATCH] chore(rfq-api): better error (#2924) * better error * [goreleaser] --- services/rfq/relayer/reldb/base/quote.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/rfq/relayer/reldb/base/quote.go b/services/rfq/relayer/reldb/base/quote.go index 3cd1b7c61e..76ac4ec2b7 100644 --- a/services/rfq/relayer/reldb/base/quote.go +++ b/services/rfq/relayer/reldb/base/quote.go @@ -53,12 +53,12 @@ func (s Store) GetQuoteRequestByOriginTxHash(ctx context.Context, txHash common. } if tx.Error != nil { - return nil, fmt.Errorf("could not get quote") + return nil, fmt.Errorf("could not get quote %w", tx.Error) } qr, err := modelResult.ToQuoteRequest() if err != nil { - return nil, err + return nil, fmt.Errorf("could not convert to quote request %w", err) } return qr, nil }