PR Review feedback cleanup
@@ -1112,8 +1112,8 @@ impl<'debuginfo> UnitInfo<'debuginfo> {
Complete => break,
RequiresMemory { address, size, .. } => {
let mut buff = vec![0u8; size as usize];
- core.read_8(address as u32, &mut buff).map_err(|error| {
- DebugError::Other(anyhow::anyhow!("Failed to read memory. {:?}", error))
+ core.read_8(address as u32, &mut buff).map_err(|_| {
+ DebugError::Other(anyhow::anyhow!("Unexpected error while reading debug expressions from target memory. Please report this as a bug."))
})?;
match size {
1 => evaluation.resume_with_memory(gimli::Value::U8(buff[0]))?,
