Fixes bug 163982: Extra "" irritant in expander error
This commit is contained in:
parent
b71de5dab4
commit
d6a1a177a9
|
@ -1 +1 @@
|
||||||
1099
|
1100
|
||||||
|
|
|
@ -3358,8 +3358,14 @@
|
||||||
(lambda (x . args)
|
(lambda (x . args)
|
||||||
(unless (for-all string? args)
|
(unless (for-all string? args)
|
||||||
(error 'syntax-error "invalid argument" args))
|
(error 'syntax-error "invalid argument" args))
|
||||||
(error 'expander "invalid syntax"
|
(raise
|
||||||
(stx->datum x) (apply string-append args))))
|
(condition
|
||||||
|
(make-who-condition 'expander)
|
||||||
|
(make-message-condition
|
||||||
|
(if (null? args)
|
||||||
|
"invalid syntax"
|
||||||
|
(apply string-append args)))
|
||||||
|
(stx->datum x)))))
|
||||||
|
|
||||||
(define identifier? (lambda (x) (id? x)))
|
(define identifier? (lambda (x) (id? x)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue