log sql.ErrNoRows which I suspect is what is leading to the flaky test

This commit is contained in:
Ian Norden 2019-10-24 13:12:19 -05:00
parent 65808998b3
commit 4fbde836d4

View File

@ -128,6 +128,7 @@ func (tr *Transformer) Init() error {
firstBlock, retrieveErr := tr.Retriever.RetrieveFirstBlock()
if retrieveErr != nil {
if retrieveErr == sql.ErrNoRows {
logrus.Error(retrieveErr)
firstBlock = 0
} else {
return fmt.Errorf("error retrieving first block: %s", retrieveErr.Error())