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.moon | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nomsu_compiler.moon') diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 068173e..3993490 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -20,13 +20,13 @@ fail_at = (source, msg)-> title, err_msg, hint = msg\match("([^:]*):[ \n]+(.*)[ \n]+Hint: (.*)") if not err_msg - err_msg, hint = msg\match("*(.*)[ \n]+Hint:[ \n]+(.*)") - title = "Error" + err_msg, hint = msg\match("(.*)[ \n]+Hint:[ \n]+(.*)") + title = "Failure" if not err_msg title, err_msg = msg\match("([^:]*):[ \n]+(.*)") if not err_msg err_msg = msg - title = "Error" + title = "Failure" err_str = pretty_error{ title: title, -- cgit v1.2.3