throw error when skynet.exit

This commit is contained in:
Cloud Wu
2014-07-03 17:40:07 +08:00
parent 711c04e6a9
commit f874fdc618
5 changed files with 17 additions and 3 deletions

View File

@@ -3,11 +3,13 @@ for word in string.gmatch(..., "%S+") do
table.insert(args, word)
end
SERVICE_NAME = args[1]
local main, pattern
local err = {}
for pat in string.gmatch(LUA_SERVICE, "([^;]+);*") do
local filename = string.gsub(pat, "?", args[1])
local filename = string.gsub(pat, "?", SERVICE_NAME)
local f, msg = loadfile(filename)
if not f then
table.insert(err, msg)