]> gitweb.factorcode.org Git - factor.git/commitdiff
reference the stack-height requirement in unbalanced-branches-error
authorAlex Maestas <git@se30.xyz>
Sat, 2 Apr 2022 01:40:22 +0000 (01:40 +0000)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 30 Jul 2023 20:41:13 +0000 (13:41 -0700)
this partially addresses issue #2600

basis/stack-checker/errors/prettyprint/prettyprint.factor

index 78a1e190fe30c48611e45b0b17854126aa1af3d7..20792d377c42262f57866e38d3fdad1fccabb4f4 100644 (file)
@@ -56,10 +56,12 @@ M: do-not-compile summary
 M: unbalanced-branches-error summary
     [ word>> name>> ] [ quots>> length 1 = ] bi
     [ "The input quotation to “" "” doesn't match its expected effect" ]
-    [ "The input quotations to “" "” don't match their expected effects" ] if
+    [ "The input quotations to “" "” do not all leave the stack at the same height" ] if
     surround ;
 
 M: unbalanced-branches-error error.
-    dup summary print
+    dup summary print nl
+    "For more information, evaluate:" print
+    "    \"inference-branches\" help" print nl
     [ quots>> ] [ declareds>> ] [ actuals>> ] tri 3array flip
     { "Input" "Expected" "Got" } prefix simple-table. ;