diff options
Diffstat (limited to 'src/scripting.c')
-rw-r--r-- | src/scripting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripting.c b/src/scripting.c index 7bf9f1c04..6830e7a70 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -1544,7 +1544,7 @@ void evalGenericCommand(client *c, int evalsha) { * return an error. */ if (evalsha) { lua_pop(lua,1); /* remove the error handler from the stack. */ - addReply(c, shared.noscripterr); + addReplyErrorObject(c, shared.noscripterr); return; } if (luaCreateFunction(c,lua,c->argv[1]) == NULL) { @@ -1695,7 +1695,7 @@ void evalShaCommand(client *c) { * not the right length. So we return an error ASAP, this way * evalGenericCommand() can be implemented without string length * sanity check */ - addReply(c, shared.noscripterr); + addReplyErrorObject(c, shared.noscripterr); return; } if (!(c->flags & CLIENT_LUA_DEBUG)) |