Commit d3cc54d4 authored by Max Kellermann's avatar Max Kellermann

TagArchive, db/update/Service: catch all exceptions

parent 71ef0faa
...@@ -33,7 +33,7 @@ try { ...@@ -33,7 +33,7 @@ try {
return false; return false;
return tag_stream_scan(*is, handler); return tag_stream_scan(*is, handler);
} catch (const std::exception &e) { } catch (...) {
return false; return false;
} }
...@@ -45,6 +45,6 @@ try { ...@@ -45,6 +45,6 @@ try {
auto is = archive.OpenStream(path_utf8, mutex); auto is = archive.OpenStream(path_utf8, mutex);
return is && tag_stream_scan(*is, builder); return is && tag_stream_scan(*is, builder);
} catch (const std::exception &e) { } catch (...) {
return false; return false;
} }
...@@ -126,8 +126,9 @@ UpdateService::Task() noexcept ...@@ -126,8 +126,9 @@ UpdateService::Task() noexcept
if (modified || !next.db->FileExists()) { if (modified || !next.db->FileExists()) {
try { try {
next.db->Save(); next.db->Save();
} catch (const std::exception &e) { } catch (...) {
LogError(e, "Failed to save database"); LogError(std::current_exception(),
"Failed to save database");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment