From e82af803ab45f716c85811ac313ea7631905359a Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 4 Sep 2017 02:04:41 +1000 Subject: [PATCH] made nbsrv print errors \o/ --- exec/nbsrv.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/nbsrv.lua b/exec/nbsrv.lua index fa9043e..c3120f3 100644 --- a/exec/nbsrv.lua +++ b/exec/nbsrv.lua @@ -8,7 +8,7 @@ end local f=io.open(fpath,"rb") local nbdata = f:read("*a") f:close() -spawn("nbsrv: "..tostring(nport)..","..fpath,function() +spawn("nbsrv: "..tostring(nport)..","..fpath,function() print(xpcall(function() while true do local _, laddress, raddress, port, _, payload = event.pull("modem_message") if port == nport and type(payload) == "string" then @@ -23,5 +23,5 @@ spawn("nbsrv: "..tostring(nport)..","..fpath,function() end end end -end) +end)) end) print("[nbsrv] nbsrv started.")