MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaRaiseError

Function luaRaiseError

app/redis-6.2.6/src/scripting.c:314–318  ·  view source on GitHub ↗

In case the error set into the Lua stack by luaPushError() was generated * by the non-error-trapping version of redis.pcall(), which is redis.call(), * this function will raise the Lua error so that the execution of the * script will be halted. */

Source from the content-addressed store, hash-verified

312 * this function will raise the Lua error so that the execution of the
313 * script will be halted. */
314int luaRaiseError(lua_State *lua) {
315 lua_pushstring(lua,"err");
316 lua_gettable(lua,-2);
317 return lua_error(lua);
318}
319
320/* Sort the array currently in the stack. We do this to make the output
321 * of commands like KEYS or SMEMBERS something deterministic when called

Callers 1

luaRedisGenericCommandFunction · 0.85

Calls 3

lua_pushstringFunction · 0.50
lua_gettableFunction · 0.50
lua_errorFunction · 0.50

Tested by

no test coverage detected