I'm trying to port over a library I made for Computer Craft, but I can't tell for the life of me where this error is coming from.
I know that the library works properly, as I've gotten another of it's functions working just fine. Sorry if this is a noob question, I am a java developer, and am just getting into lua.
Full error message:
bad argument #1 (number expected, got string):
stack traceback:
[C]: in function 'error'
machine:986: in function <machine:983>
(...tail calls...)
/lib/fileMngr.lua:10: in function 'sendFile'
/home/send:3: in main chunk
(...tail calls...)
[C]: in function 'xpcall'
machine:751: in function 'xpcall'
/lib/process.lua:63: in function </lib/process.lua:59>
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I'm trying to port over a library I made for Computer Craft, but I can't tell for the life of me where this error is coming from.
I know that the library works properly, as I've gotten another of it's functions working just fine. Sorry if this is a noob question, I am a java developer, and am just getting into lua.
Full error message:
fileMngr.sendFile:
send.lua (simple test program):
Somehow an extra s ended up in address
Link to post
Share on other sites