From: Cedric BAIL Date: Wed, 20 Feb 2013 03:10:18 +0000 (+0900) Subject: edje: let's properly report that file doesn't exist. X-Git-Tag: submit/devel/efl/20131022.203902~1767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61287fce389843c8cb1819556da08ec98241ca13;p=platform%2Fupstream%2Fefl.git edje: let's properly report that file doesn't exist. --- diff --git a/ChangeLog b/ChangeLog index 1aad83f..8e82519 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ -2013-02-19 Daniel Zaoui +2013-02-20 Cedric Bail + + * Properly report file not found in Edje. + +2013-02-19 Daniel Zaoui * Fix Evas_Object_Text when LTR and RTL are used in the same paragraph. diff --git a/NEWS b/NEWS index dc576ff..8fa05e6 100644 --- a/NEWS +++ b/NEWS @@ -174,3 +174,4 @@ Fixes: * fix anchor clicked mouse signals for selection-enabled entries * Fix edje_color_class_list() and edje_text_class_list() to look at right hashes. * Evas: Fix Evas_Object_Text when LTR and RTL are used in the same paragraph. + * Properly report file not found in Edje. diff --git a/src/lib/edje/edje_cache.c b/src/lib/edje/edje_cache.c index 3f93e5c..7e5506f 100644 --- a/src/lib/edje/edje_cache.c +++ b/src/lib/edje/edje_cache.c @@ -403,7 +403,10 @@ _edje_cache_file_coll_open(const char *file, const char *coll, int *error_ret, E struct stat st; if (stat(file, &st) != 0) - return NULL; + { + *error_ret = EDJE_LOAD_ERROR_DOES_NOT_EXIST; + return NULL; + } if (!_edje_file_hash) {