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.
1 parent 9e3c3da commit 5b9db18Copy full SHA for 5b9db18
1 file changed
crates/codegraph-core/src/native_db.rs
@@ -871,8 +871,10 @@ impl NativeDatabase {
871
// Delete existing CFG data for this node so the caller doesn't
872
// need to perform deletes on a separate (JS) connection, which
873
// would cause a WAL conflict with the native connection.
874
- let _ = del_edges.execute(params![entry.node_id]);
875
- let _ = del_blocks.execute(params![entry.node_id]);
+ del_edges.execute(params![entry.node_id])
+ .map_err(|e| napi::Error::from_reason(format!("cfg_edges delete failed: {e}")))?;
876
+ del_blocks.execute(params![entry.node_id])
877
+ .map_err(|e| napi::Error::from_reason(format!("cfg_blocks delete failed: {e}")))?;
878
879
let mut block_db_ids: std::collections::HashMap<u32, i64> =
880
std::collections::HashMap::new();
0 commit comments