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:
parent
7408bc7bfa
commit
073beec9ff
|
@ -3219,7 +3219,10 @@ elm_config_all_flush(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_elm_config_profile_save())
|
if (!_elm_config_profile_save())
|
||||||
return;
|
{
|
||||||
|
ERR("Failed to save profile");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
buf[len] = '/';
|
buf[len] = '/';
|
||||||
len++;
|
len++;
|
||||||
|
@ -3242,7 +3245,10 @@ elm_config_all_flush(void)
|
||||||
|
|
||||||
ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1);
|
ok = eet_data_write(ef, _config_edd, "config", _elm_config, 1);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
goto err;
|
{
|
||||||
|
ERR("Failed to write config (error %i)", ok);
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
err = _elm_config_eet_close_error_get(ef, buf2);
|
err = _elm_config_eet_close_error_get(ef, buf2);
|
||||||
if (err)
|
if (err)
|
||||||
|
|
Loading…
Reference in New Issue