storage/State: make mount errors non-fatal

Fixes crash bug caused by commit
64d141f71e
This commit is contained in:
Max Kellermann 2018-01-02 14:07:23 +01:00
parent a20b326807
commit 08db28469d
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}