i guess you can break the loop if `error_code.all()` is true?