diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-19 10:56:23 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-19 10:56:23 +0100 |
commit | 914df18bf93369d279fff85f87c4ac8524f32540 (patch) | |
tree | b73edeeb37923be1c124e608423ad3b5da068958 /src/SongUpdate.cxx | |
parent | a539094c06114a6be862e219bfc03d6a3513d80b (diff) |
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r-- | src/SongUpdate.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 6eb76a9bd..99d0f0761 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -34,7 +34,7 @@ #include "TagArchive.hxx" #endif -#include <stdexcept> +#include <exception> #include <assert.h> #include <string.h> @@ -68,7 +68,7 @@ Song::UpdateFile(Storage &storage) StorageFileInfo info; try { info = storage.GetInfo(relative_uri.c_str(), true); - } catch (const std::runtime_error &) { + } catch (...) { return false; } |