decoder/Thread, ...: log all exceptions

This commit is contained in:
Max Kellermann
2018-08-09 11:14:40 +02:00
parent 87570cdd9b
commit 01d3777574
8 changed files with 19 additions and 20 deletions

View File

@@ -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