|
|
@@ -109,9 +109,15 @@ static void l_message (const char *pname, const char *msg) {
|
|
|
** is a string, as it was either generated by Lua or by 'msghandler'.
|
|
|
*/
|
|
|
static int report (lua_State *L, int status) {
|
|
|
+ size_t len = 0;
|
|
|
if (status != LUA_OK) {
|
|
|
- const char *msg = lua_tostring(L, -1);
|
|
|
- l_message("LUAT", msg);
|
|
|
+ const char *msg = lua_tolstring(L, -1, &len);
|
|
|
+ //luaL_traceback(L, L, msg, 1);
|
|
|
+ //msg = lua_tolstring(L, -1, &len);
|
|
|
+ LLOGE("Luat: ");
|
|
|
+ LLOGE("%s", msg);
|
|
|
+ // LLOGD("MSG2 ==> %s %d", msg, len);
|
|
|
+ // l_message("LUAT", msg);
|
|
|
#ifdef LUAT_USE_ERRDUMP
|
|
|
luat_errdump_save_file(msg, strlen(msg));
|
|
|
#endif
|