fix a `(with-handlers ([exn? ....]) ....)'
This commit is contained in:
parent
2d06f4247f
commit
306e091f35
|
@ -7,7 +7,7 @@
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
[(_ expr)
|
[(_ expr)
|
||||||
;; catch syntax errors while expanding, turn them into runtime errors
|
;; 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)
|
(define-values (_ opaque)
|
||||||
(syntax-local-expand-expression
|
(syntax-local-expand-expression
|
||||||
#'(with-handlers
|
#'(with-handlers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user