From 83c35122468296526a68e0cd69151119a142e1b4 Mon Sep 17 00:00:00 2001 From: billettc Date: Wed, 8 Nov 2023 11:28:30 -0500 Subject: [PATCH] better log to find HandleNoneSplitPayments fk issue --- data/psql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/psql.go b/data/psql.go index d8eba22..e376e6c 100644 --- a/data/psql.go +++ b/data/psql.go @@ -226,7 +226,7 @@ func (p *Psql) HandleNoneSplitPayments(dbBlockID int64, payments []*pb.NoSplitPa //todo: detect drive vs fleet from backend api _, err = p.db.Exec("INSERT INTO hivemapper.no_split_payments (mint_id) VALUES ($1) RETURNING id", mintDbID) if err != nil { - return fmt.Errorf("inserting payment: %w", err) + return fmt.Errorf("inserting NoneSplitPayments with mint_id %d mint_to %q tx %q: %w", mintDbID, payment.Mint.To, payment.Mint.TrxHash, err) } } return nil