discover: Display warning if saving config fails
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 29 Nov 2018 02:05:02 +0000 (13:05 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 29 Nov 2018 02:05:02 +0000 (13:05 +1100)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/device-handler.c

index 271b9880b45d633f5013f2de11ec4c038f149e3b..729ed2c0f52ae76f9cbc7474cd803ed773bab3a6 100644 (file)
@@ -1501,8 +1501,11 @@ void device_handler_update_config(struct device_handler *handler,
        int rc;
 
        rc = config_set(config);
        int rc;
 
        rc = config_set(config);
-       if (rc)
+       if (rc) {
+               device_handler_status_err(handler,
+                               "Failed to update configuration!");
                return;
                return;
+       }
 
        discover_server_notify_config(handler->server, config);
        device_handler_update_lang(config->lang);
 
        discover_server_notify_config(handler->server, config);
        device_handler_update_lang(config->lang);