mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Return ASAP when lua error is string (#11075)
This is a harmless optimization/bug. When the top of the lua stack is a string, we should not continue to use lua_getfield to get the table fields.
This commit is contained in:
parent
beb9746a9f
commit
7cd3520424
@ -1553,6 +1553,7 @@ void luaExtractErrorInformation(lua_State *lua, errorInfo *err_info) {
|
||||
err_info->line = NULL;
|
||||
err_info->source = NULL;
|
||||
err_info->ignore_err_stats_update = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
lua_getfield(lua, -1, "err");
|
||||
|
Loading…
Reference in New Issue
Block a user