Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message from the lua script #32

Open
donaldong opened this issue Jul 9, 2020 · 0 comments
Open

Better error message from the lua script #32

donaldong opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@donaldong
Copy link
Contributor

Sometimes we see errors such as

Redis::CommandError: ERR Error running script (call to f_5aca618019854a1275397a2ec745a306fa8d8fc9): @user_script:113: @user_script: 113: Wrong number of args calling Redis command From Lua script
from /home/dev/.rbenv/versions/2.5.5/lib/ruby/gems/2.5.0/gems/redis-4.1.3/lib/redis/client.rb:126:in `call'

This is not easy to debug. We don't know which script is it, nor do we know the real offending line since the Lua files are only templates.

It'd be nice to improve the error message so it's easier to debug.

@donaldong donaldong added the enhancement New feature or request label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant