Use a more appropriate message for files not found than 'Unknown Format'

SVN revision: 30621
This commit is contained in:
Gustavo Sverzut Barbieri 2007-07-06 20:46:32 +00:00
parent 5f4e0e936e
commit 28294cb592
1 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,13 @@ _edje_file_open(const char *file, const char *coll, int *error_ret, Edje_Part_Co
Edje_Part_Collection *edc;
Eet_File *ef;
Evas_List *l;
struct stat st;
if (stat(file, &st) != 0)
{
*error_ret = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
return NULL;
}
ef = eet_open(file, EET_FILE_MODE_READ);
if (!ef)