Skip to content

Commit

Permalink
[python] Use better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
patacca committed Apr 29, 2024
1 parent 79bf2a6 commit 69066c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/python/quokka/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def get_segment(self, address: AddressT) -> quokka.Segment:
if segment.in_segment(address):
return segment

raise KeyError(f"No segment has been found for address 0x{address}")
raise KeyError(f"No segment has been found for address {address:#x}")

@cached_property
def func_chunk_index(self) -> Dict[Index, List[quokka.Function]]:
Expand Down

0 comments on commit 69066c8

Please sign in to comment.