Skip to content

Commit

Permalink
Coerce lance error
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv committed Dec 30, 2024
1 parent ad055d7 commit b4bd99a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swiftide-integrations/src/lancedb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<lancedb::Table> {
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")
}
}

Expand Down

0 comments on commit b4bd99a

Please sign in to comment.