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 9ff146d..b29b27d 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(); } |