From: Cedric Bail Date: Wed, 25 Sep 2019 19:50:35 +0000 (-0400) Subject: efl: improve error message to be really useful. X-Git-Tag: submit/tizen/20190925.214157~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0e978f292bc525ed63e3ead24a1ecb6383a2385;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/lib/efl/interfaces/efl_file.c b/src/lib/efl/interfaces/efl_file.c index d6f262d..a35710f 100644 --- a/src/lib/efl/interfaces/efl_file.c +++ b/src/lib/efl/interfaces/efl_file.c @@ -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) {