diff --git a/libsrc/leddevice/dev_net/LedDeviceNanoleaf.cpp b/libsrc/leddevice/dev_net/LedDeviceNanoleaf.cpp index 288776ee..ff7324cd 100644 --- a/libsrc/leddevice/dev_net/LedDeviceNanoleaf.cpp +++ b/libsrc/leddevice/dev_net/LedDeviceNanoleaf.cpp @@ -102,8 +102,7 @@ bool LedDeviceNanoleaf::init(const QJsonObject &deviceConfig) { if ( _hostname.isEmpty() ) //Discover Nanoleaf device if ( !discoverNanoleafDevice() ) { - Error(_log, "No target IP defined nor Nanoleaf device discovered"); - return false; + throw std::runtime_error("No target IP defined nor Nanoleaf device discovered"); } //Get Nanoleaf device details and configuration