]> gitweb.factorcode.org Git - factor.git/commitdiff
help.lint.checks: show which vocab-link is non-existent
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Jan 2023 23:10:30 +0000 (15:10 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Jan 2023 23:10:30 +0000 (15:10 -0800)
basis/help/lint/checks/checks.factor

index dfac066116ed37f08d15db58316d03423f9f8fb9..cbaff6550b50f0347b9fd374e01da72843d0f6b1 100644 (file)
@@ -127,10 +127,10 @@ SYMBOL: vocab-articles
 : check-modules ( element -- )
     \ $vocab-link swap elements [
         second
-        vocab-exists? [
-            "$vocab-link to non-existent vocabulary"
+        dup vocab-exists? [ drop ] [
+            "$vocab-link to non-existent vocabulary ``" "''" surround
             simple-lint-error
-        ] unless
+        ] if
     ] each ;
 
 : check-slots-tables ( element -- )