mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
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.
This commit is contained in:
@@ -6200,7 +6200,7 @@ pub fn op_idx_delete(
|
||||
.map(|i| &state.registers[i])
|
||||
.collect::<Vec<_>>();
|
||||
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::<Vec<_>>();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user