Skip to content

Commit

Permalink
chore(rfq-api): better error (#2924)
Browse files Browse the repository at this point in the history
* better error

* [goreleaser]
  • Loading branch information
golangisfun123 authored Jul 28, 2024
1 parent b061c0d commit d468adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/rfq/relayer/reldb/base/quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d468adc

Please sign in to comment.