]> gitweb.factorcode.org Git - factor.git/commitdiff
stack-checker.errors.prettyprint: refer to unbalanced-branches quotation in singular...
authorJoe Groff <arcata@gmail.com>
Fri, 18 Jun 2010 22:36:03 +0000 (15:36 -0700)
committerJoe Groff <arcata@gmail.com>
Fri, 18 Jun 2010 22:36:03 +0000 (15:36 -0700)
basis/stack-checker/errors/prettyprint/prettyprint.factor

index 3d4480a4aa9ba21b7d893e2a15891e04db49de6d..5af10102675d460a002187c7b29b804ceb2e6bbb 100644 (file)
@@ -55,8 +55,10 @@ M: do-not-compile summary
     word>> name>> "Cannot compile call to “" "”" surround ;
 
 M: unbalanced-branches-error summary
-    word>> name>>
-    "The input quotations to “" "” don't match their expected effects" surround ;
+    [ 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
+    surround ;
 
 M: unbalanced-branches-error error.
     dup summary print