aboutsummaryrefslogtreecommitdiff
path: root/include/device_proto.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-27 21:28:01 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-27 21:28:01 +0200
commit34ade3188a96ee51c8dc895ac087d80480536968 (patch)
treed6bdd4ff814b666c7ebb93ad3c3baad1daedd968 /include/device_proto.h
parent04dacd90fb06928cad4b29a99239b7b3b664674b (diff)
downloadlibnitrokey-34ade3188a96ee51c8dc895ac087d80480536968.tar.gz
libnitrokey-34ade3188a96ee51c8dc895ac087d80480536968.tar.bz2
Use separate exception for wrong receiving packet's CRC
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device_proto.h')
-rw-r--r--include/device_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/device_proto.h b/include/device_proto.h
index b137689..964c2d9 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -371,7 +371,7 @@ namespace nitrokey {
resp.command_id, resp.device_status, resp.storage_status.progress_bar_value);
}
- if (!resp.isValid()) throw DeviceReceivingFailure("Invalid incoming packet");
+ if (!resp.isValid()) throw InvalidCRCReceived("Invalid incoming packet");
if (receiving_retry_counter <= 0)
throw DeviceReceivingFailure(
"Maximum receiving_retry_counter count reached for receiving response from the device!");