fix error message

This commit is contained in:
Sam Tobin-Hochstadt 2008-09-08 13:03:56 -04:00
parent a1825082df
commit ff85152f59

View File

@ -75,7 +75,7 @@
(define (tc-error/delayed msg #:stx [stx* (current-orig-stx)] . rest)
(let ([stx (locate-stx stx*)])
(unless (syntax? stx)
(error "syntax was not syntax" stx (syntax->datum stx*)))
(int-err "erroneous syntax was not a syntax object" stx (syntax->datum stx*)))
(if (delay-errors?)
(set! delayed-errors (cons (make-err (apply format msg rest) (list stx)) delayed-errors))
(raise-typecheck-error (apply format msg rest) (list stx)))))