diff options
author | Max Kellermann <max@musicpd.org> | 2018-08-09 11:14:40 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-08-09 11:14:40 +0200 |
commit | 01d377757435436aff41120845194534c34230a1 (patch) | |
tree | 4f4435ecf9542dd5bdc25679103195265b23087d /src/db | |
parent | 87570cdd9b1183c04093d5fc04dc760a56fc5b0c (diff) |
decoder/Thread, ...: log all exceptions
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 4 | ||||
-rw-r--r-- | src/db/update/Walk.cxx | 8 |
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 |