storage/State: make mount errors non-fatal
Fixes crash bug caused by commit
64d141f71e
This commit is contained in:
@@ -105,7 +105,10 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance)
|
|||||||
((SimpleDatabase *)db)->Mount(uri.c_str(), url.c_str());
|
((SimpleDatabase *)db)->Mount(uri.c_str(), url.c_str());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
delete storage;
|
delete storage;
|
||||||
throw;
|
FormatError(std::current_exception(),
|
||||||
|
"Failed to restore mount to %s",
|
||||||
|
url.c_str());
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user