efl: improve error message to be really useful.
authorCedric Bail <cedric.bail@free.fr>
Wed, 25 Sep 2019 19:50:35 +0000 (15:50 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 25 Sep 2019 21:12:44 +0000 (06:12 +0900)
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

index d6f262d..a35710f 100644 (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)
      {