Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4fbde83

Browse files
committed
log sql.ErrNoRows which I suspect is what is leading to the flaky test
1 parent 6580899 commit 4fbde83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/contract_watcher/header/transformer/transformer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ func (tr *Transformer) Init() error {
128128
firstBlock, retrieveErr := tr.Retriever.RetrieveFirstBlock()
129129
if retrieveErr != nil {
130130
if retrieveErr == sql.ErrNoRows {
131+
logrus.Error(retrieveErr)
131132
firstBlock = 0
132133
} else {
133134
return fmt.Errorf("error retrieving first block: %s", retrieveErr.Error())

0 commit comments

Comments
 (0)