summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-09 11:14:40 +0200
committerMax Kellermann <max@musicpd.org>2018-08-09 11:14:40 +0200
commit01d377757435436aff41120845194534c34230a1 (patch)
tree4f4435ecf9542dd5bdc25679103195265b23087d /src/db
parent87570cdd9b1183c04093d5fc04dc760a56fc5b0c (diff)
decoder/Thread, ...: log all exceptions
Diffstat (limited to 'src/db')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx4
-rw-r--r--src/db/update/Walk.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
index 94510110c..52e46f76d 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
@@ -175,8 +175,8 @@ SimpleDatabase::Open()
try {
Load();
- } catch (const std::exception &e) {
- LogError(e);
+ } catch (...) {
+ LogError(std::current_exception());
delete root;
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index 2c8990cf3..2cc9fa51f 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -234,8 +234,8 @@ try {
FormatDebug(update_domain,
"%s is not a directory, archive or music", name);
}
-} catch (const std::exception &e) {
- LogError(e);
+} catch (...) {
+ LogError(std::current_exception());
}
/* we don't look at "." / ".." nor files with newlines in their name */
@@ -477,8 +477,8 @@ try {
ExcludeList exclude_list;
UpdateDirectoryChild(*parent, exclude_list, name, info);
-} catch (const std::exception &e) {
- LogError(e);
+} catch (...) {
+ LogError(std::current_exception());
}
bool