From 6ba2b8b36d4d8a082875c0d28a232b164fdc9638 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 26 Mar 2019 15:37:27 -0700 Subject: Fix for (assume ($x > $y)) bug --- lib/core/errors.nom | 4 ++-- 1 file 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 +") -- cgit v1.2.3