add skynet.error

This commit is contained in:
Cloud Wu
2014-04-02 16:35:24 +08:00
parent 7c43421784
commit 1a07e94ad5

View File

@@ -521,6 +521,14 @@ function skynet.harbor(addr)
return c.harbor(addr)
end
function skynet.error(...)
local t = {...}
for i=1,#t do
t[i] = tostring(t[i])
end
return c.error(table.concat(t, " "))
end
----- debug
local internal_info_func