[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: luasocket / "object is not a string" issue
- From: Laurent Faillie <l_faillie@...>
- Date: Sat, 06 Apr 2013 18:35:19 +0200
I have the following code :
local socket = require("socket")
local clt = socket.try(socket.connect( "celeron.chez.moi", 7634 ))
local try = socket.newtry(function() clt:close() end)
local s, err = clt:receive('*a')
And I'm testing it with Lua 5.1.5
It tried it on 2 machines with "similar" configuration.
On the first machine, is it working, but on a second one, I got a
/usr/bin/lua: (error object is not a string)
As per http://www.luafaq.org/, it's due to 'error' handling.
Any idea how I can trouble shoot ?
PS: the fun part in a remote machine with the code is working, and is it
on the famous "celeron" when the code is failing.