diff options
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 3 |
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(); } |