fs/io/OutputStream: use C++ exceptions in Write()

This commit is contained in:
Max Kellermann
2015-12-16 10:24:43 +01:00
parent 36d6ead65c
commit e4a06da14e
24 changed files with 241 additions and 333 deletions

View File

@@ -130,9 +130,7 @@ UpdateService::Task()
if (modified || !next.db->FileExists()) {
try {
Error error;
if (!next.db->Save(error))
LogError(error, "Failed to save database");
next.db->Save();
} catch (const std::exception &e) {
LogError(e, "Failed to save database");
}