Kept syntax-parse expr/c error message consistent with define/contract.

svn: r17750
This commit is contained in:
Carl Eastlund 2010-01-19 09:26:42 +00:00
parent 934c775c25
commit ad7976079f

View File

@ -109,12 +109,13 @@
(define-syntax-class (expr/c ctc)
#:attributes (c)
(pattern x:expr
#:with c #`(contract #,ctc
x
(quote #,(source-location->string #'x))
'<this-macro>
#f
(quote-srcloc x))))
#:with
c #`(contract #,ctc
x
(quote #,(source-location->string #'x "<<unknown>>"))
'<this-macro>
#f
(quote-srcloc x))))
;; Literal sets