MCPcopy Create free account
hub / github.com/Tencent/Tendis / luaRaiseError

Function luaRaiseError

src/tendisplus/script/lua_state.cpp:178–182  ·  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

176 * this function will raise the Lua error so that the execution of the
177 * script will be halted. */
178int luaRaiseError(lua_State* lua) {
179 lua_pushstring(lua, "err");
180 lua_gettable(lua, -2);
181 return lua_error(lua);
182}
183
184/* Sort the array currently in the stack. We do this to make the output
185 * of commands like KEYS or SMEMBERS something deterministic when called

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected