mirror of https://github.com/ledisdb/ledisdb.git
return lua error in eval
This commit is contained in:
parent
de284bab4d
commit
d9a8da770d
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue