collect errors in a results array