improve error message

This commit is contained in:
Matthias Felleisen 2014-10-21 11:05:20 -04:00
parent 4624a99420
commit 3568db5f4f

View File

@ -264,7 +264,7 @@
[dom (syntax->list #'(clause ...))])
(cond
[(and (not (contains-clause? #'to-draw dom)) (not (contains-clause? #'on-draw dom)))
(raise-syntax-error #f "expects a [to-draw handler] clause, missing" stx)]
(raise-syntax-error #f "missing [to-draw renderer] or [on-draw renderer] clause" stx)]
[else
(syntax-property
(stepper-syntax-property