Use a less confusing term in the error message for invalid clauses

Since ‘template’ is technically the second part
This commit is contained in:
Daphne Preston-Kendal 2022-02-01 13:46:18 +01:00
parent bddbdc801d
commit aef1a1b358

View file

@ -1080,7 +1080,7 @@
(lambda (clause)
(if (and (list? clause) (= (length clause) 2))
(expand-pattern (car clause) (cadr clause))
(error "invalid syntax template clause, which must be of the form (pattern template) (note fenders are not supported)"
(error "invalid syntax rule, which must be of the form (pattern template) (note fenders are not supported)"
clause)))
forms)
(list