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/StateFile.cxx | |
parent | 87570cdd9b1183c04093d5fc04dc760a56fc5b0c (diff) |
decoder/Thread, ...: log all exceptions
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r-- | src/StateFile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx index a106a509c..7c13fb9b2 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -102,8 +102,8 @@ StateFile::Write() FileOutputStream fos(config.path); Write(fos); fos.Commit(); - } catch (const std::exception &e) { - LogError(e); + } catch (...) { + LogError(std::current_exception()); } RememberVersions(); @@ -143,8 +143,8 @@ try { } RememberVersions(); -} catch (const std::exception &e) { - LogError(e); +} catch (...) { + LogError(std::current_exception()); } void |