mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-13 01:53:35 +00:00
Better jump table error context
This commit is contained in:
parent
ba2589646e
commit
ae00c35ec3
@ -244,7 +244,9 @@ pub fn uniq_jump_table_entries(
|
||||
return Ok((BTreeSet::new(), 0));
|
||||
}
|
||||
let (entries, size) =
|
||||
get_jump_table_entries(obj, addr, size, from, function_start, function_end)?;
|
||||
get_jump_table_entries(obj, addr, size, from, function_start, function_end).with_context(
|
||||
|| format!("While fetching jump table entries starting at {addr:#010X}"),
|
||||
)?;
|
||||
Ok((BTreeSet::from_iter(entries.iter().cloned()), size))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user