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

@@ -175,8 +175,8 @@ SimpleDatabase::Open()
try {
Load();
} catch (const std::exception &e) {
LogError(e);
} catch (...) {
LogError(std::current_exception());
delete root;

View File

@@ -234,8 +234,8 @@ try {
FormatDebug(update_domain,
"%s is not a directory, archive or music", name);
}
} catch (const std::exception &e) {
LogError(e);
} catch (...) {
LogError(std::current_exception());
}
/* we don't look at "." / ".." nor files with newlines in their name */
@@ -477,8 +477,8 @@ try {
ExcludeList exclude_list;
UpdateDirectoryChild(*parent, exclude_list, name, info);
} catch (const std::exception &e) {
LogError(e);
} catch (...) {
LogError(std::current_exception());
}
bool