diff options
author | Jean Guyomarc'h <jean.guyomarch@openwide.fr> | 2015-10-12 18:01:39 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-12-03 11:04:10 -0800 |
commit | d8ed87b921b8bb583fb2ad5c4f64aee67dfbb21f (patch) | |
tree | 854f150eb42792a92675186ac2f368000e506a8d | |
parent | 6de3379c6d4207b3f2cab2fe03d856eefda34d38 (diff) | |
download | elementary-d8ed87b921b8bb583fb2ad5c4f64aee67dfbb21f.tar.gz |
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.c | 10 |
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) } if (!_elm_config_profile_save()) - return; + { + ERR("Failed to save profile"); + return; + } buf[len] = '/'; len++; @@ -3242,7 +3245,10 @@ elm_config_all_flush(void) ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1); if (!ok) - goto err; + { + ERR("Failed to write config (error %i)", ok); + goto err; + } err = _elm_config_eet_close_error_get(ef, buf2); if (err) |