summaryrefslogtreecommitdiff
path: root/src/fs/Path.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
committerMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
commit914df18bf93369d279fff85f87c4ac8524f32540 (patch)
treeb73edeeb37923be1c124e608423ad3b5da068958 /src/fs/Path.cxx
parenta539094c06114a6be862e219bfc03d6a3513d80b (diff)
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/fs/Path.cxx')
-rw-r--r--src/fs/Path.cxx4
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();
}
}