Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed Jan 17, 2025
1 parent 07d8d7f commit df0abf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tooling/nargo/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ fn extract_locations_from_error<F: AcirField>(
.iter()
.flat_map(|resolved_location| {
let call_stack_id = match resolved_location.opcode_location {
OpcodeLocation::Acir(idx) => {
debug[resolved_location.acir_function_index].location_map
[&AcirOpcodeLocation::new(idx)]
}
OpcodeLocation::Acir(idx) => *debug[resolved_location.acir_function_index]
.location_map
.get(&AcirOpcodeLocation::new(idx))
.unwrap_or(&CallStackId::root()),
// TODO: should we use acir_index here and merge the 2 call stacks?
OpcodeLocation::Brillig { brillig_index, .. } => *debug
[resolved_location.acir_function_index]
Expand Down

0 comments on commit df0abf3

Please sign in to comment.