fix a `(with-handlers ([exn? ....]) ....)'

This commit is contained in:
Matthew Flatt 2011-08-09 09:05:42 -06:00
parent 2d06f4247f
commit 306e091f35

View File

@ -7,7 +7,7 @@
(syntax-case stx ()
[(_ expr)
;; catch syntax errors while expanding, turn them into runtime errors
(with-handlers ([exn? (lambda (e) #`(list 'error #,(exn-message e) #f))])
(with-handlers ([exn:fail:syntax? (lambda (e) #`(list 'error #,(exn-message e) #f))])
(define-values (_ opaque)
(syntax-local-expand-expression
#'(with-handlers