We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 513ac90 commit 1386fddCopy full SHA for 1386fdd
libsql-server/src/namespace/mod.rs
@@ -208,8 +208,14 @@ impl MakeNamespace for PrimaryNamespaceMaker {
208
if !ns_path.try_exists()? {
209
NamespaceBottomlessDbId::NotProvided
210
} else {
211
- let db_config_store = DatabaseConfigStore::load(&ns_path)
212
- .context("Could not load database config")?;
+ let db_config_store_result = DatabaseConfigStore::load(&ns_path);
+ let db_config_store = match db_config_store_result {
213
+ Ok(store) => store,
214
+ Err(err) => {
215
+ tracing::error!("could not load database: {}", err);
216
+ return Err(err);
217
+ }
218
+ };
219
let config = db_config_store.get();
220
NamespaceBottomlessDbId::from_config(&config)
221
}
0 commit comments