From dd21d07a7d8b36826d9a29a3d654b7e316b982d1 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 19 Oct 2020 21:03:50 +0700 Subject: [PATCH] print full key if it has 8 leading zeroes --- common/etl/collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/etl/collector.go b/common/etl/collector.go index 0cf318273..59f344c4a 100644 --- a/common/etl/collector.go +++ b/common/etl/collector.go @@ -212,12 +212,12 @@ func loadFilesIntoBucket(db ethdb.Database, bucket string, providers []dataProvi } if canUseAppend { if err := tx.(*ethdb.TxDb).Append(bucket, k, v); err != nil { - return err + return fmt.Errorf("append: k=%x, %w", k, err) } return nil } if err := tx.Put(bucket, k, v); err != nil { - return err + return fmt.Errorf("put: k=%x, %w", k, err) } return nil }