fix a `(with-handlers ([exn? ....]) ....)'
This commit is contained in:
parent
2d06f4247f
commit
306e091f35
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user