Commit 08db2846 authored by Max Kellermann's avatar Max Kellermann

storage/State: make mount errors non-fatal

Fixes crash bug caused by commit 64d141f7
parent a20b3268
......@@ -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;
}
}
......
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