summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-12 18:01:39 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:41:40 +0100
commit32b303a629bab2a493ff542e82e4674932725f70 (patch)
tree679e9f6be61606466514f4da8fd21c6555c3e80e
parent47e9cc972a34fa48f4f7d60ae840395c16cfd8d6 (diff)
elm_config: add error messages when profile or config could not be saved
-rw-r--r--src/lib/elm_config.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index cbe679596..1cf6d4894 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -3215,7 +3215,10 @@ elm_config_all_flush(void)
3215 } 3215 }
3216 3216
3217 if (!_elm_config_profile_save()) 3217 if (!_elm_config_profile_save())
3218 return; 3218 {
3219 ERR("Failed to save profile");
3220 return;
3221 }
3219 3222
3220 buf[len] = '/'; 3223 buf[len] = '/';
3221 len++; 3224 len++;
@@ -3238,7 +3241,10 @@ elm_config_all_flush(void)
3238 3241
3239 ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1); 3242 ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1);
3240 if (!ok) 3243 if (!ok)
3241 goto err; 3244 {
3245 ERR("Failed to write config (error %i)", ok);
3246 goto err;
3247 }
3242 3248
3243 err = _elm_config_eet_close_error_get(ef, buf2); 3249 err = _elm_config_eet_close_error_get(ef, buf2);
3244 if (err) 3250 if (err)