From 7b6c2f5332749b73a0788261344b3b822b5401b6 Mon Sep 17 00:00:00 2001 From: osmarks Date: Fri, 27 Jul 2018 09:45:41 +0100 Subject: [PATCH] Fix yet another typo --- lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.lua b/lib.lua index d761ae9..75a9c32 100644 --- a/lib.lua +++ b/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 print("Request:", textutils.serialise(message.request)) - local ok, result = pcall(fn, request) + local ok, result = pcall(fn, message.request) if not ok then response = errors.make(errors.INTERNAL, result) print("Error:", textutils.serialise(result)) -- show error