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/PlaylistSave.cxx | |
parent | a539094c06114a6be862e219bfc03d6a3513d80b (diff) |
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index d3ec30bb2..ba61c7286 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -32,7 +32,7 @@ #include "fs/io/BufferedOutputStream.hxx" #include "util/UriUtil.hxx" -#include <stdexcept> +#include <exception> static void playlist_print_path(BufferedOutputStream &os, const Path path) @@ -57,7 +57,7 @@ playlist_print_song(BufferedOutputStream &os, const DetachedSong &song) try { const auto uri_fs = AllocatedPath::FromUTF8Throw(uri_utf8); playlist_print_path(os, uri_fs); - } catch (const std::runtime_error &) { + } catch (...) { } } @@ -76,7 +76,7 @@ playlist_print_uri(BufferedOutputStream &os, const char *uri) if (!path.IsNull()) playlist_print_path(os, path); - } catch (const std::runtime_error &) { + } catch (...) { } } |