From 44548b27880371c5fc927b6c463d693f03e2e5d1 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 7 Oct 2017 14:04:28 +0200 Subject: Correct exception type Signed-off-by: Szczepan Zalega --- NitrokeyManager.cc | 3 +-- 1 file changed, 1 insertion(+), 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(); } -- cgit v1.2.3