zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=25cba85a6a060c89d77ac76c63cc1979b6388dbe

commit 25cba85a6a060c89d77ac76c63cc1979b6388dbe
Author: Cedric Bail <cedric.b...@free.fr>
Date:   Wed Sep 25 15:50:35 2019 -0400

    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
---
 src/lib/efl/interfaces/efl_file.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/lib/efl/interfaces/efl_file.c 
b/src/lib/efl/interfaces/efl_file.c
index d6f262d3e2..a35710f0f3 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)
      {

-- 


Reply via email to