disambiguate IOerror from end of file