db/Interface: GetSong() throws exception on error

This commit is contained in:
Max Kellermann
2016-03-19 00:13:57 +01:00
parent 7ad7caa2ae
commit 2fd5182608
15 changed files with 43 additions and 67 deletions

View File

@@ -127,9 +127,7 @@ PrintSongDetails(Response &r, Partition &partition, const char *uri_utf8)
const LightSong *song;
try {
song = db->GetSong(uri_utf8, IgnoreError());
if (song == nullptr)
return false;
song = db->GetSong(uri_utf8);
} catch (const std::runtime_error &e) {
return false;
}