oops got errors the wrong way

SVN revision: 11332
This commit is contained in:
Carsten Haitzler 2004-08-24 02:11:38 +00:00
parent acb65be215
commit 795fa244e1
1 changed files with 2 additions and 4 deletions

View File

@ -1246,15 +1246,13 @@ _edje_embryo_test_run(Edje *ed, char *fname, char *sig, char *src)
embryo_parameter_string_push(ed->collection->script, src);
pdata = embryo_program_data_get(ed->collection->script);
embryo_program_data_set(ed->collection->script, ed);
err = embryo_program_run(ed->collection->script, fn);
if (err != EMBRYO_ERROR_NONE)
if (!embryo_program_run(ed->collection->script, fn))
{
printf("EDJE: ERROR with embryo script.\n"
"FUNCTION: %s\n"
"ERROR: %s\n",
fname,
embryo_error_string_get(err));
embryo_error_string_get(embryo_program_error_get(ed->collection->script)));
}
embryo_program_data_set(ed->collection->script, pdata);
printf("EDJE DEBUG: Done.\n");