client/app: Log Lua errors on warning level
This commit is contained in:
parent
e11965ac1f
commit
21559cda60
@ -269,7 +269,7 @@ struct CApp: public Polycode::EventHandler, public App
|
|||||||
|
|
||||||
int error = luaL_dofile(L, (g_client_config.share_path+"/init.lua").c_str());
|
int error = luaL_dofile(L, (g_client_config.share_path+"/init.lua").c_str());
|
||||||
if(error){
|
if(error){
|
||||||
log_v(MODULE, "luaL_dofile: An error occurred: %s\n",
|
log_w(MODULE, "luaL_dofile: An error occurred: %s\n",
|
||||||
lua_tostring(L, -1));
|
lua_tostring(L, -1));
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
@ -300,7 +300,7 @@ struct CApp: public Polycode::EventHandler, public App
|
|||||||
|
|
||||||
int error = luaL_dostring(L, script.c_str());
|
int error = luaL_dostring(L, script.c_str());
|
||||||
if(error){
|
if(error){
|
||||||
log_v(MODULE, "luaL_dostring: An error occurred: %s\n",
|
log_w(MODULE, "luaL_dostring: An error occurred: %s\n",
|
||||||
lua_tostring(L, -1));
|
lua_tostring(L, -1));
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user