Skip to content

Commit

Permalink
cls-lua: negate code for correct error string
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
  • Loading branch information
dotnwat committed Jun 26, 2016
1 parent ae16c40 commit 223aa95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cls/lua/cls_lua.cc
Expand Up @@ -259,7 +259,7 @@ static int clslua_opresult(lua_State *L, int ok, int ret, int nargs,

/* push error message */
if (!error_on_stack)
lua_pushfstring(L, "%s", strerror(ret));
lua_pushfstring(L, "%s", strerror(-ret));

return lua_error(L);
}
Expand Down

0 comments on commit 223aa95

Please sign in to comment.