Fix harvesting error handling

(previous fix was incorrect)