We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Index on a nonexistent table
1 parent be5e543 commit f6f335bCopy full SHA for f6f335b
crates/database/src/snapshot_manager.rs
@@ -309,7 +309,9 @@ impl<RT: Runtime> Snapshot<RT> {
309
if !index_name.is_system_owned() {
310
let (document_size, total_index_size) = *document_storage_by_table
311
.get(&table_name)
312
- .expect("Index on a nonexistent table");
+ .with_context(|| {
313
+ format!("Index {index_name} on a nonexistent table {table_name}")
314
+ })?;
315
document_storage_by_table.insert(
316
table_name,
317
(document_size, total_index_size + document_size),
0 commit comments