From b4bd99a1076dca0494bd4d3a5412146a24354eab Mon Sep 17 00:00:00 2001 From: Timon Vonk Date: Mon, 30 Dec 2024 14:20:18 +0100 Subject: [PATCH] Coerce lance error --- swiftide-integrations/src/lancedb/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/swiftide-integrations/src/lancedb/mod.rs b/swiftide-integrations/src/lancedb/mod.rs index 400117c6..e959c4ad 100644 --- a/swiftide-integrations/src/lancedb/mod.rs +++ b/swiftide-integrations/src/lancedb/mod.rs @@ -121,7 +121,10 @@ impl LanceDB { /// Returns an error if the table cannot be opened or the connection cannot be acquired. pub async fn open_table(&self) -> Result { let conn = self.get_connection().await?; - conn.open_table(&self.table_name).execute().await + conn.open_table(&self.table_name) + .execute() + .await + .context("Failed to open table") } }