Fix double application of format.

Closes PR 11524.

original commit: f8c01299f971c65509877e22feaaa4f2ccb79227
This commit is contained in:
Vincent St-Amour 2010-12-10 16:54:27 -05:00
parent a00e498399
commit 8e569511e8

View File

@ -171,7 +171,7 @@
(define (fv/list ts) (hash-map (combine-frees (map free-vars* ts)) (lambda (k v) k)))
(define (tc-error/expr msg #:return [return (make-Union null)] #:stx [stx (current-orig-stx)] . rest)
(tc-error/delayed #:stx stx (apply format msg rest))
(apply tc-error/delayed #:stx stx msg rest)
return)
;; error for unbound variables