diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/common/je_lua_error.h | 5 | ||||
-rw-r--r-- | src/lua/modules/graphics/je_lua_graphics.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lua/common/je_lua_error.h b/src/lua/common/je_lua_error.h index 500994f..3f7e76f 100644 --- a/src/lua/common/je_lua_error.h +++ b/src/lua/common/je_lua_error.h @@ -17,8 +17,9 @@ namespace JinEngine va_start(args, fmt); vsnprintf(err + strlen(err), FORMAT_MSG_BUFFER_SIZE, fmt, args); va_end(args); - luax_getglobal(L, "jin"); - luax_setfieldstring(L, "error", err); + //luax_getglobal(L, "jin"); + //luax_setfieldstring(L, "error", err); + luax_error(L, err); } } // namespace Lua diff --git a/src/lua/modules/graphics/je_lua_graphics.cpp b/src/lua/modules/graphics/je_lua_graphics.cpp index 90e4533..a2157b6 100644 --- a/src/lua/modules/graphics/je_lua_graphics.cpp +++ b/src/lua/modules/graphics/je_lua_graphics.cpp @@ -196,7 +196,7 @@ namespace JinEngine AssetDatabase* fs = AssetDatabase::get(); if (!fs->exists(path)) { - error(L, "No such shader file %s\n", path); + error(L, "No such shader file \"%s\"\n", path); luax_pushnil(L); return 1; } @@ -809,4 +809,4 @@ namespace JinEngine } } // namespace Lua -} // namespace JinEngine
\ No newline at end of file +} // namespace JinEngine
\ No newline at end of file |