diff --git a/server/cmd_script.go b/server/cmd_script.go index 1325477..e5c3264 100644 --- a/server/cmd_script.go +++ b/server/cmd_script.go @@ -99,6 +99,11 @@ func evalGenericCommand(c *client, evalSha1 bool) error { } else { r := luaReplyToLedisReply(l) m.Close() + + if v, ok := r.(error); ok { + return v + } + writeValue(c.resp, r) }