aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index d2aa38a..d93283d 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -79,6 +79,10 @@ extern int NK_login(const char *device_model) {
NK_last_command_status = commandFailedException.last_command_status;
return commandFailedException.last_command_status;
}
+ catch (std::runtime_error &e){
+ cerr << e.what() << endl;
+ return 0;
+ }
return 0;
}