aboutsummaryrefslogtreecommitdiff
path: root/lib/core/errors.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-27 15:22:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-27 15:22:46 -0700
commita1849da175765350e013bdeecfa4e0ad3c066937 (patch)
tree616a115790271757148044e2b3228fb715c00726 /lib/core/errors.nom
parentbb07e6724118c431c3beed4060776678128905a1 (diff)
Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
Diffstat (limited to 'lib/core/errors.nom')
-rw-r--r--lib/core/errors.nom5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/core/errors.nom b/lib/core/errors.nom
index 0b5479d..ef5412e 100644
--- a/lib/core/errors.nom
+++ b/lib/core/errors.nom
@@ -1,5 +1,4 @@
#!/usr/bin/env nomsu -V7.0.0
-
###
This file contains basic error reporting code
@@ -27,6 +26,7 @@ use "core/control_flow"
end
end
")
+
if ($condition.type == "Action"):
when $condition.stub is:
"1 ==":
@@ -132,6 +132,7 @@ test:
$fallback_lua, prepend "\n\$msg_lua = _result[2]\n"
if ($msg_lua, text, is lua id):
$fallback_lua, add free vars [($msg_lua, text)]
+
$fallback_lua, prepend "-- Failure:\n"
return Lua ("
do
@@ -191,4 +192,4 @@ test:
if not _results[1] then error(_results[2], 0) end
if not _fell_through then return table.unpack(_results, 2) end
end
-")
+") \ No newline at end of file