fix error message
This commit is contained in:
parent
a1825082df
commit
ff85152f59
|
@ -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)))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user