Return error if collecting data from a sweep fails