indicate that tags are in hex
This commit is contained in:
parent
8620c55034
commit
2f2ec61d19
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ def read_record_header(stream: BinaryIO) -> Tuple[int, int]:
|
|||
def expect_record(stream: BinaryIO, tag: int) -> int:
|
||||
data_size, actual_tag = read_record_header(stream)
|
||||
if tag != actual_tag:
|
||||
raise KlamathError(f'Unexpected record! Got tag {actual_tag:04x}, expected {tag:04x}')
|
||||
raise KlamathError(f'Unexpected record! Got tag 0x{actual_tag:04x}, expected 0x{tag:04x}')
|
||||
return data_size
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue