From e258645a523c5fb4407be4a9e90df1314b225191 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 27 Oct 2022 13:17:23 -0400 Subject: Better error handling behavior --- Lua/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lua/test.lua') diff --git a/Lua/test.lua b/Lua/test.lua index d812009..48a2ffa 100644 --- a/Lua/test.lua +++ b/Lua/test.lua @@ -38,7 +38,7 @@ print("Testing parse errors:") local ok, msg = pcall(function() bp.match(".;//;;; wtf", "xxx") end) -if not ok then print(("\x1B[41;30mParse error:\x1B[0;1;31m %s\x1B[m\n"):format(msg)) end +if not ok then print(("Successfully got parse error: \"%s\"\n"):format(msg)) end print("Testing builtins:") print(bp.match("parens", "...(foo())...")) -- cgit v1.2.3