Skip to content

Commit 1cb9839

Browse files
committed
Fix error reporting which misses row error
1 parent 5ad4fbf commit 1cb9839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/tc-collector/reportExistenceChecker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (t *ReportExistenceChecker) reset(taskContext context.Context, dbName strin
4848
}
4949

5050
if rows.Err() != nil {
51-
return fmt.Errorf("cannot scan %s: %w", tableName, err)
51+
return fmt.Errorf("cannot scan %s: %w", tableName, rows.Err())
5252
}
5353
return nil
5454
}

0 commit comments

Comments
 (0)