From 2a02cafc737369bb324266902c5e4902a766d7a3 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Mon, 13 Oct 2025 09:40:37 +0300 Subject: [PATCH] core/vdbe: Improve IdxDelete error messages with context We currently return the exact same error from two different IdxDelete paths. Improve the messages with context about what we're doing to make this error more debuggable. --- core/vdbe/execute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 61d715b83..e56bd4fdb 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -6200,7 +6200,7 @@ pub fn op_idx_delete( .map(|i| &state.registers[i]) .collect::>(); return Err(LimboError::Corrupt(format!( - "IdxDelete: no matching index entry found for key {reg_values:?}" + "IdxDelete: no matching index entry found for key {reg_values:?} while seeking" ))); } state.pc += 1; @@ -6221,7 +6221,7 @@ pub fn op_idx_delete( .map(|i| &state.registers[i]) .collect::>(); return Err(LimboError::Corrupt(format!( - "IdxDelete: no matching index entry found for key {reg_values:?}" + "IdxDelete: no matching index entry found for key while verifying: {reg_values:?}" ))); } state.op_idx_delete_state = Some(OpIdxDeleteState::Deleting);