void lua_error_p(lua_State *L, const char *fmt, ...)
{
/* Add a stack trace and throw the result as a lua error. */
- luaL_traceback(L, L, "error occured here (config filename:lineno is at the bottom, if config is involved):", 0);
+ luaL_traceback(L, L, "error occurred here (config filename:lineno is at the bottom, if config is involved):", 0);
/* Push formatted custom message, prepended with "ERROR: ". */
lua_pushliteral(L, "\nERROR: ");
{
-- Logging
function panic(fmt, ...)
- print(debug.traceback('error occured here (config filename:lineno is '
+ print(debug.traceback('error occurred here (config filename:lineno is '
.. 'at the bottom, if config is involved):', 2))
error(string.format('ERROR: '.. fmt, ...), 0)
end
},
{
false, -- function failed
- 'error occured...', -- the returned error message
+ 'error occurred...', -- the returned error message
['n'] = 2,
},
['n'] = 2,