From ba755626cc82e9377068131e6b1cf85f0c199ea7 Mon Sep 17 00:00:00 2001 From: Kilerd Chan Date: Mon, 30 Jun 2025 10:33:18 +0800 Subject: [PATCH] fix: expose parsing error coming from invalid object store uri (#2475) this PR is to expose the error from `ListingCatalog::open_path` which unwrap the Result coming from `ObjectStore::from_uri` to avoid panic --- rust/lancedb/src/catalog/listing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/lancedb/src/catalog/listing.rs b/rust/lancedb/src/catalog/listing.rs index b8ac21d0d..efbe87c61 100644 --- a/rust/lancedb/src/catalog/listing.rs +++ b/rust/lancedb/src/catalog/listing.rs @@ -105,7 +105,7 @@ impl ListingCatalog { } async fn open_path(path: &str) -> Result { - let (object_store, base_path) = ObjectStore::from_uri(path).await.unwrap(); + let (object_store, base_path) = ObjectStore::from_uri(path).await?; if object_store.is_local() { Self::try_create_dir(path).context(CreateDirSnafu { path })?; }