lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


One sonetimes gets:

bad argument #2 to 'gsub' (string/function/table expected)

By analogy with other messages, the message might have said

bad argument #2 to 'gsub' (string/function/table expected, got nil)
bad argument #2 to 'gsub' (string/function/table expected, got number)

etc. which would immediately give a lead to what the coding mistake was.