io: add Ready::ERROR
and report error readiness
#5781
Merged
Ready::ERROR
and report error readiness
#5781