aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-09-20 12:54:01 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-09-20 12:54:01 +0200
commit7a04ee7dd3fad10e30581d22956234aeff2b2f3a (patch)
tree99770ff5bebd0816fd74e830e4308276b960dc9f /NK_C_API.cc
parent8f7435e4553916e6cc431e4b5316cc5861fd9063 (diff)
parenta83419fe4a13bc77005d455dd89685b8c1443d96 (diff)
downloadlibnitrokey-7a04ee7dd3fad10e30581d22956234aeff2b2f3a.tar.gz
libnitrokey-7a04ee7dd3fad10e30581d22956234aeff2b2f3a.tar.bz2
Merge branch 'osx-communication_issues' into OSX_merge_cleaned
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 0e3fa1f..209b378 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -76,6 +76,12 @@ uint8_t get_without_result(T func){
catch (LibraryException & libraryException){
NK_last_command_status = libraryException.exception_id();
}
+ catch (const InvalidCRCReceived &invalidCRCException){
+ ;;;
+ }
+ catch (const DeviceCommunicationException &deviceException){
+ NK_last_command_status = -1;
+ }
return NK_last_command_status;
}