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. */
| 315 | * this function will raise the Lua error so that the execution of the |
| 316 | * script will be halted. */ |
| 317 | int luaRaiseError(lua_State *lua) { |
| 318 | lua_pushstring(lua,"err"); |
| 319 | lua_gettable(lua,-2); |
| 320 | return lua_error(lua); |
| 321 | } |
| 322 | |
| 323 | /* Sort the array currently in the stack. We do this to make the output |
| 324 | * of commands like KEYS or SMEMBERS something deterministic when called |
no test coverage detected