aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-07 16:50:22 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-07 16:50:22 +0200
commitfa871ecba4333ffe9a96b0a662b9d77089cf69b7 (patch)
tree50184e30a8565ffc8ba9b023d961120388c57473 /NitrokeyManager.cc
parent544f69c3e8cd744db0b8f20aade475159fef1d5e (diff)
parentb4f6ee9ad0c4da26fe2003de68905c0365893778 (diff)
downloadlibnitrokey-fa871ecba4333ffe9a96b0a662b9d77089cf69b7.tar.gz
libnitrokey-fa871ecba4333ffe9a96b0a662b9d77089cf69b7.tar.bz2
Merge branch '71-failing_tests'v3.0
Closes #71
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 0d702eb..a03ef53 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -724,9 +724,8 @@ using nitrokey::misc::strcpyT;
}
DeviceModel NitrokeyManager::get_connected_device_model() const{
- //FIXME throw if no device is connected or return unknown/unconnected value
if (device == nullptr){
- throw std::runtime_error("device not connected");
+ throw DeviceNotConnected("device not connected");
}
return device->get_device_model();
}