update documentation, fix error message not being set in case of an invalid file

This commit is contained in:
ado
2020-12-31 01:01:18 +01:00
parent f71fced3c5
commit aa97b18aa7
2 changed files with 117 additions and 6 deletions

View File

@@ -293,11 +293,8 @@ private:
}
void set_error_file_not_open() {
if (error_mode_ == error_mode::String) {
string_error_.append(file_name_).append(" could not be not open.");
} else {
bool_error_ = true;
}
string_error_.append(file_name_).append(" could not be not open.");
bool_error_ = true;
}
void set_error_eof_reached() {