Skip to content

Commit e121e5c

Browse files
committed
Return error instead of silently failing
1 parent b89650d commit e121e5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rust/index/src/spann/types.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,10 @@ impl SpannIndexWriter {
813813
}
814814
}
815815
Ok(None) => {}
816-
Err(_) => {}
816+
Err(e) => {
817+
tracing::error!("Error getting posting list for head {}: {}", head_id, e);
818+
return Err(SpannIndexWriterError::PostingListGetError(e));
819+
}
817820
}
818821
Ok(())
819822
}

0 commit comments

Comments
 (0)