Line numbers for Redis errors in Lua scripts

133 views
Skip to first unread message

Simeon Simeonov

unread,
May 15, 2013, 7:34:25 PM5/15/13
to redi...@googlegroups.com
Lua scripts are generally easy to debug because of the line numbers that come with error messages. However, I recently came upon:

(error) ERR Error running script (call to f_0b4bd7cd4e10aa3bdad305ad611438fba8db4eca): Wrong number of args calling Redis command From Lua script

Is there a way to generate line numbers for these messages? I'm also struggling to understand the reason why line numbers are omitted in this case.

Thanks,
Sim

Salvatore Sanfilippo

unread,
May 18, 2013, 11:11:59 AM5/18/13
to Redis DB
Please could you open an issue with a real-world example? Looks like
something to investigate indeed, sometimes scripts get very large, I
saw recently some seo-moz code with very long scripts.

Cheers,
Salvatore
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/redis-db?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter

Simeon Simeonov

unread,
May 21, 2013, 11:27:17 AM5/21/13
to redi...@googlegroups.com
Salvatore, I created issue #1121
Reply all
Reply to author
Forward
0 new messages