aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-27 02:02:40 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-27 02:03:03 -0800
commite6d9996b12a6b330d94ec2ae5a4a9f7ae166dc8c (patch)
tree41933d5642ccba820481992fe1a4f353b41fb2a4 /nomsu_compiler.moon
parent3142ef46a3385b209f29d843cf20c8f02ad65905 (diff)
Fail no longer prepends 'Failure:' automatically, now fail_at() does if
no prefix is there.
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon6
1 files changed, 3 insertions, 3 deletions
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,