config: add error messages when profile or config could not be saved.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jean Guyomarc'h 2015-10-12 18:01:39 +02:00 committed by Cedric BAIL
parent 7408bc7bfa
commit 073beec9ff
1 changed files with 8 additions and 2 deletions

View File

@ -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)