storage: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-27 08:40:40 +02:00
parent cab87e9398
commit c598686bd9
19 changed files with 208 additions and 281 deletions

View File

@@ -68,9 +68,7 @@ Song::UpdateFile(Storage &storage)
StorageFileInfo info;
try {
if (!storage.GetInfo(relative_uri.c_str(), true, info,
IgnoreError()))
return false;
info = storage.GetInfo(relative_uri.c_str(), true);
} catch (const std::runtime_error &) {
return false;
}