jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=793e2ee21e2c0ca344e2af2d6f379a6ab7e8b0b4

commit 793e2ee21e2c0ca344e2af2d6f379a6ab7e8b0b4
Author: Jean-Philippe Andre <[email protected]>
Date:   Wed Jun 11 10:00:44 2014 +0900

    Evas filters: Report parsing error message from lua
    
    Also, re-enable legacy code compatibility layer, as it
    can still be used for compat with older code.
---
 src/lib/evas/filters/evas_filter_parser.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/lib/evas/filters/evas_filter_parser.c 
b/src/lib/evas/filters/evas_filter_parser.c
index 33bb181..9d828f5 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -13,7 +13,7 @@
 # define FILTERS_DEBUG
 #endif
 
-//#define FILTERS_LEGACY_COMPAT
+#define FILTERS_LEGACY_COMPAT
 
 #define EVAS_FILTER_MODE_GROW   (EVAS_FILTER_MODE_LAST+1)
 #define EVAS_FILTER_MODE_BUFFER (EVAS_FILTER_MODE_LAST+2)
@@ -2071,7 +2071,13 @@ evas_filter_program_parse(Evas_Filter_Program *pgm, 
const char *str)
      }
 #endif
 
-   if (ok) ok = !lua_pcall(L, 0, LUA_MULTRET, 0);
+   if (ok)
+     ok = !lua_pcall(L, 0, LUA_MULTRET, 0);
+   else
+     {
+        const char *msg = lua_tostring(L, -1);
+        ERR("Lua parsing failed: %s", msg);
+     }
    lua_close(L);
 
    ok &= (pgm->instructions != NULL);

-- 


Reply via email to