diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-02 14:07:23 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-02 14:07:52 +0100 |
commit | 08db28469df91a4e6b916772dfed1aa036b57d38 (patch) | |
tree | f921c72be4dcb8f508f4c6a7c095d0c472aafcef /src/storage | |
parent | a20b3268079149c925189a7e51db3f79f5153f5a (diff) |
storage/State: make mount errors non-fatal
Fixes crash bug caused by commit
64d141f71e690a4258ba9ee8712140bc9d961883
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/StorageState.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx index 7c7d49295..f6d93c2f0 100644 --- a/src/storage/StorageState.cxx +++ b/src/storage/StorageState.cxx @@ -105,7 +105,10 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance) ((SimpleDatabase *)db)->Mount(uri.c_str(), url.c_str()); } catch (...) { delete storage; - throw; + FormatError(std::current_exception(), + "Failed to restore mount to %s", + url.c_str()); + return true; } } |