mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	Throw Execption as "return false" is not handled
if no hostname configured nor device was discovered
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user