return an error if StructScan encounters an error scanning rows