fs/io/Reader: use C++ exceptions instead of class Error

This commit is contained in:
Max Kellermann
2015-12-16 11:05:33 +01:00
parent fe60c52c70
commit e6e7d6dbd6
33 changed files with 192 additions and 334 deletions

View File

@@ -254,11 +254,7 @@ LoadPlaylistFile(const char *utf8path, Error &error)
if (path_fs.IsNull())
return contents;
TextFile file(path_fs, error);
if (file.HasFailed()) {
TranslatePlaylistError(error);
return contents;
}
TextFile file(path_fs);
char *s;
while ((s = file.ReadLine()) != nullptr) {