summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-11-29 13:05:02 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-11-29 13:05:02 +1100
commitc87691826e75cd036c160686c83998b6d06c6e50 (patch)
treed37bde23b883b22f2b7b1d71f4d3871842865e50 /discover
parentef0c91e9b6c99ccbb5a3c1a88bb4d5ca85d254b4 (diff)
downloadtalos-petitboot-c87691826e75cd036c160686c83998b6d06c6e50.tar.gz
talos-petitboot-c87691826e75cd036c160686c83998b6d06c6e50.zip
discover: Display warning if saving config fails
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 271b988..729ed2c 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -1501,8 +1501,11 @@ void device_handler_update_config(struct device_handler *handler,
int rc;
rc = config_set(config);
- if (rc)
+ if (rc) {
+ device_handler_status_err(handler,
+ "Failed to update configuration!");
return;
+ }
discover_server_notify_config(handler->server, config);
device_handler_update_lang(config->lang);
OpenPOWER on IntegriCloud