_current_path = p;
_current_file = fopen_boost (_paths[_current_path], "rb");
if (_current_file == 0) {
- throw OpenFileError (_paths[_current_path], errno, true);
+ throw OpenFileError (_paths[_current_path], errno, OpenFileError::READ);
}
}
break;
}
- if (ferror(_current_file) && errno != EAGAIN) {
+ if (ferror(_current_file)) {
throw FileError (String::compose("fread error %1", errno), _paths[_current_path]);
}