mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
better error message
This commit is contained in:
@@ -14,7 +14,7 @@ local function read_package(fd)
|
||||
local sz = socket.read(fd, 1)
|
||||
assert(sz, "closed")
|
||||
sz = string.byte(sz)
|
||||
local content = socket.read(fd, sz)
|
||||
local content = assert(socket.read(fd, sz), "closed")
|
||||
return skynet.unpack(content)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user