summaryrefslogtreecommitdiff
path: root/src/StateFile.cxx
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/StateFile.cxx
parent87570cdd9b1183c04093d5fc04dc760a56fc5b0c (diff)
decoder/Thread, ...: log all exceptions
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r--src/StateFile.cxx8
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