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 {
|
} else {
|
||||||
r := luaReplyToLedisReply(l)
|
r := luaReplyToLedisReply(l)
|
||||||
m.Close()
|
m.Close()
|
||||||
|
|
||||||
|
if v, ok := r.(error); ok {
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
writeValue(c.resp, r)
|
writeValue(c.resp, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue