From e6d9996b12a6b330d94ec2ae5a4a9f7ae166dc8c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Jan 2019 02:02:40 -0800 Subject: Fail no longer prepends 'Failure:' automatically, now fail_at() does if no prefix is there. --- nomsu_compiler.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nomsu_compiler.lua') diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index d04c71f..0cedd50 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -26,15 +26,15 @@ fail_at = function(source, msg) end local title, err_msg, hint = msg:match("([^:]*):[ \n]+(.*)[ \n]+Hint: (.*)") if not err_msg then - err_msg, hint = msg:match("*(.*)[ \n]+Hint:[ \n]+(.*)") - title = "Error" + err_msg, hint = msg:match("(.*)[ \n]+Hint:[ \n]+(.*)") + title = "Failure" end if not err_msg then title, err_msg = msg:match("([^:]*):[ \n]+(.*)") end if not err_msg then err_msg = msg - title = "Error" + title = "Failure" end local err_str = pretty_error({ title = title, -- cgit v1.2.3