From 2f2ec61d19ec1780cca3506a2c358e5a881b5ad7 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 29 Sep 2020 00:04:23 -0700 Subject: [PATCH] indicate that tags are in hex --- klamath/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klamath/record.py b/klamath/record.py index 0f0777f..e6fb5fb 100644 --- a/klamath/record.py +++ b/klamath/record.py @@ -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