summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glucometerutils/exceptions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py
index 1cc8cfd..53aa980 100644
--- a/glucometerutils/exceptions.py
+++ b/glucometerutils/exceptions.py
@@ -34,10 +34,10 @@ class InvalidResponse(Error):
class InvalidChecksum(InvalidResponse):
- def __init__(self, expected, received):
+ def __init__(self, wire, calculated):
super(InvalidChecksum, self).__init__(
- 'Response checksum not matching: %08x expected, %08x received' %
- (expected, received))
+ 'Response checksum not matching: %08x (wire) != %08x (calculated)' %
+ (wire, calculated))
class InvalidGlucoseUnit(Error):