From c9e8a46743685e454f2c181cfed3fc0f98c3f44f Mon Sep 17 00:00:00 2001 From: Redo Date: Fri, 28 Oct 2022 16:06:44 -0600 Subject: [PATCH] robot debug --- bricks/special/robot-input.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/special/robot-input.lua b/bricks/special/robot-input.lua index d9f3ac3..d1bf8fa 100644 --- a/bricks/special/robot-input.lua +++ b/bricks/special/robot-input.lua @@ -8,7 +8,7 @@ end return function(gate, argv) print("robot input") - print(argv[1]) + print("\""..argv[1].."\"") for word in argv[1]:gmatch("[^\t]+") do local first, rest = word:sub(1, 1), word:sub(2, #word) local vec = {} @@ -28,7 +28,7 @@ return function(gate, argv) gate.brickren = vec[7] intToPort(gate, 15, 6, gate.brickcolor) Gate.setportstate(gate, 21, gate.brickexists) - else error("invalid control word given to robot: "..word) end + else error("invalid control word given to robot: \""..word.."\".. (first \""..first.."\")") end end gate.waiting = false end