efl: improve error message to be really useful.

Reviewers: zmike, bu5hm4n

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10168
This commit is contained in:
Cedric Bail 2019-09-25 15:50:35 -04:00 committed by Mike Blumenkrantz
parent 6592fefcdd
commit 25cba85a6a
1 changed files with 5 additions and 1 deletions

View File

@ -172,7 +172,11 @@ efl_file_simple_load(Eo *obj, const char *file, const char *key)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
efl_ref(obj);
EINA_SAFETY_ON_TRUE_GOTO(efl_file_set(obj, file), fail);
if (efl_file_set(obj, file))
{
EINA_LOG_ERR("File set to '%s' on '%s' failed.", file, efl_debug_name_get(obj));
goto fail;
}
efl_file_key_set(obj, key);
if (file)
{