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/fs/Path.cxx | |
parent | a539094c06114a6be862e219bfc03d6a3513d80b (diff) |
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/fs/Path.cxx')
-rw-r--r-- | src/fs/Path.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx index b8745915f..640c74dbe 100644 --- a/src/fs/Path.cxx +++ b/src/fs/Path.cxx @@ -21,14 +21,12 @@ #include "Path.hxx" #include "Charset.hxx" -#include <stdexcept> - std::string Path::ToUTF8() const noexcept { try { return ::PathToUTF8(c_str()); - } catch (const std::runtime_error &) { + } catch (...) { return std::string(); } } |