small error message tweak

This commit is contained in:
Robby Findler 2016-11-01 11:58:44 -05:00
parent 82204d1444
commit 2f53b436f9

View File

@ -808,7 +808,7 @@
(values #f #f leftover)])])
(syntax-case leftover ()
[() (values raw-optional-doms rst pre pre/desc rng post post/desc)]
[x (raise-syntax-error #f "expected the end of the contract" stx #'x)])))
[(x . y) (raise-syntax-error #f "expected the contract to end, but found an extra sub-piece" stx #'x)])))
(define-for-syntax (->*-valid-app-shapes stx)
(define this->* (gensym 'this->*))