edje - print error when swallow part does not exist
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 Mar 2012 05:34:46 +0000 (05:34 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 Mar 2012 05:34:46 +0000 (05:34 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@69281 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index 14b23e2..0bc38a7 100644 (file)
@@ -2293,7 +2293,11 @@ edje_object_part_swallow(Evas_Object *obj, const char *part, Evas_Object *obj_sw
      }
 
    rp = _edje_real_part_recursive_get(ed, part);
-   if (!rp) return EINA_FALSE;
+   if (!rp)
+     {
+        ERR("cannot swallow part %s: part not exist!", part);
+        return EINA_FALSE;
+     }
    if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
      {
        ERR("cannot swallow part %s: not swallow type!", rp->part->name);