diff --git a/plugins/makerModeFilter.go b/plugins/makerModeFilter.go index 1a207907f..c08ef012b 100644 --- a/plugins/makerModeFilter.go +++ b/plugins/makerModeFilter.go @@ -139,7 +139,7 @@ func (f *makerModeFilter) transformOfferMakerMode( isSell, e := utils.IsSelling(baseAsset, quoteAsset, op.Selling, op.Buying) if e != nil { - return nil, fmt.Errorf("error when running the isSelling check: %s", e) + return nil, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64) diff --git a/plugins/maxPriceFilter.go b/plugins/maxPriceFilter.go index a0244a4e1..8d995634f 100644 --- a/plugins/maxPriceFilter.go +++ b/plugins/maxPriceFilter.go @@ -57,7 +57,7 @@ func (f *maxPriceFilter) Apply(ops []txnbuild.Operation, sellingOffers []hProtoc func (f *maxPriceFilter) maxPriceFilterFn(op *txnbuild.ManageSellOffer) (*txnbuild.ManageSellOffer, error) { isSell, e := utils.IsSelling(f.baseAsset, f.quoteAsset, op.Selling, op.Buying) if e != nil { - return nil, fmt.Errorf("error when running the isSelling check: %s", e) + return nil, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64) diff --git a/plugins/minPriceFilter.go b/plugins/minPriceFilter.go index 7933861b4..971c0d82c 100644 --- a/plugins/minPriceFilter.go +++ b/plugins/minPriceFilter.go @@ -57,7 +57,7 @@ func (f *minPriceFilter) Apply(ops []txnbuild.Operation, sellingOffers []hProtoc func (f *minPriceFilter) minPriceFilterFn(op *txnbuild.ManageSellOffer) (*txnbuild.ManageSellOffer, error) { isSell, e := utils.IsSelling(f.baseAsset, f.quoteAsset, op.Selling, op.Buying) if e != nil { - return nil, fmt.Errorf("error when running the isSelling check: %s", e) + return nil, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64) diff --git a/plugins/orderConstraintsFilter.go b/plugins/orderConstraintsFilter.go index 94ddd1de2..851348c4d 100644 --- a/plugins/orderConstraintsFilter.go +++ b/plugins/orderConstraintsFilter.go @@ -94,7 +94,7 @@ func (f *orderConstraintsFilter) shouldKeepOffer(op *txnbuild.ManageSellOffer) ( isSell, e := utils.IsSelling(f.baseAsset, f.quoteAsset, op.Selling, op.Buying) if e != nil { - return false, fmt.Errorf("error when running the isSelling check: %s", e) + return false, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64) diff --git a/plugins/priceFeedFilter.go b/plugins/priceFeedFilter.go index fbb2ccadd..c71e5609b 100644 --- a/plugins/priceFeedFilter.go +++ b/plugins/priceFeedFilter.go @@ -70,7 +70,7 @@ func (f *priceFeedFilter) Apply(ops []txnbuild.Operation, sellingOffers []hProto func (f *priceFeedFilter) priceFeedFilterFn(op *txnbuild.ManageSellOffer) (*txnbuild.ManageSellOffer, error) { isSell, e := utils.IsSelling(f.baseAsset, f.quoteAsset, op.Selling, op.Buying) if e != nil { - return nil, fmt.Errorf("error when running the isSelling check: %s", e) + return nil, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64) diff --git a/plugins/volumeFilter.go b/plugins/volumeFilter.go index 37e037f5c..5c943f668 100644 --- a/plugins/volumeFilter.go +++ b/plugins/volumeFilter.go @@ -157,7 +157,7 @@ func (f *volumeFilter) Apply(ops []txnbuild.Operation, sellingOffers []hProtocol func (f *volumeFilter) volumeFilterFn(dailyOTB *VolumeFilterConfig, dailyTBB *VolumeFilterConfig, op *txnbuild.ManageSellOffer) (*txnbuild.ManageSellOffer, error) { isSell, e := utils.IsSelling(f.baseAsset, f.quoteAsset, op.Selling, op.Buying) if e != nil { - return nil, fmt.Errorf("error when running the isSelling check: %s", e) + return nil, fmt.Errorf("error when running the isSelling check for offer '%+v': %s", *op, e) } sellPrice, e := strconv.ParseFloat(op.Price, 64)