summaryrefslogtreecommitdiff
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-27 08:40:40 +0200
committerMax Kellermann <max@musicpd.org>2016-10-27 21:35:19 +0200
commitc598686bd90aa49285e3e6bb7ad222231e1d3995 (patch)
tree990dfb1d047ee28b9a6754fafa09354892928228 /src/SongUpdate.cxx
parentcab87e9398bcaf9dd5a8cfbfcf2cca4ee8e581ae (diff)
storage: migrate from class Error to C++ exceptions
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index 78741dc3e..bbfc7ad09 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -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;
}