aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-26 15:37:27 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-26 15:37:27 -0700
commit6ba2b8b36d4d8a082875c0d28a232b164fdc9638 (patch)
tree73920ae31f041add456adb7c578057ba540d198c
parent24f347fd0cd91dc2198e8b6c56fb4c7a1c08df2d (diff)
Fix for (assume ($x > $y)) bug
-rw-r--r--lib/core/errors.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/errors.nom b/lib/core/errors.nom
index 20751fa..d77717d 100644
--- a/lib/core/errors.nom
+++ b/lib/core/errors.nom
@@ -52,7 +52,7 @@ use "core/control_flow"
_b = type_of(_b) == 'Text' and _b:as_lua() or _1_as_text(_b)
at_1_fail(\(quote "\($condition.1.source)"),
"Assumption failed: This value was ".._a..", but it was expected to be \
- ..\($condition.3)".._b..".")
+ ..\($condition.2)".._b..".")
end
end
")
@@ -180,4 +180,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
+")