Fix yet another typo
This commit is contained in:
parent
9954e2be1f
commit
7b6c2f5332
2
lib.lua
2
lib.lua
@ -106,7 +106,7 @@ local function serve(fn, node_type)
|
|||||||
if type(message) == "table" and message.type and message.type == "request" and message.request then
|
if type(message) == "table" and message.type and message.type == "request" and message.request then
|
||||||
print("Request:", textutils.serialise(message.request))
|
print("Request:", textutils.serialise(message.request))
|
||||||
|
|
||||||
local ok, result = pcall(fn, request)
|
local ok, result = pcall(fn, message.request)
|
||||||
if not ok then
|
if not ok then
|
||||||
response = errors.make(errors.INTERNAL, result)
|
response = errors.make(errors.INTERNAL, result)
|
||||||
print("Error:", textutils.serialise(result)) -- show error
|
print("Error:", textutils.serialise(result)) -- show error
|
||||||
|
Loading…
Reference in New Issue
Block a user