summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-12 18:01:39 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-12-03 11:04:10 -0800
commitd8ed87b921b8bb583fb2ad5c4f64aee67dfbb21f (patch)
tree854f150eb42792a92675186ac2f368000e506a8d
parent6de3379c6d4207b3f2cab2fe03d856eefda34d38 (diff)
config: add error messages when profile or config could not be saved.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-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 82b82581b..30032fcf5 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -3219,7 +3219,10 @@ elm_config_all_flush(void)
3219 } 3219 }
3220 3220
3221 if (!_elm_config_profile_save()) 3221 if (!_elm_config_profile_save())
3222 return; 3222 {
3223 ERR("Failed to save profile");
3224 return;
3225 }
3223 3226
3224 buf[len] = '/'; 3227 buf[len] = '/';
3225 len++; 3228 len++;
@@ -3242,7 +3245,10 @@ elm_config_all_flush(void)
3242 3245
3243 ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1); 3246 ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1);
3244 if (!ok) 3247 if (!ok)
3245 goto err; 3248 {
3249 ERR("Failed to write config (error %i)", ok);
3250 goto err;
3251 }
3246 3252
3247 err = _elm_config_eet_close_error_get(ef, buf2); 3253 err = _elm_config_eet_close_error_get(ef, buf2);
3248 if (err) 3254 if (err)