Fixes bug 163982: Extra "" irritant in expander error

This commit is contained in:
Abdulaziz Ghuloum 2007-11-21 02:23:29 -05:00
parent b71de5dab4
commit d6a1a177a9
2 changed files with 10 additions and 4 deletions

View File

@ -1 +1 @@
1099
1100

View File

@ -3358,8 +3358,14 @@
(lambda (x . args)
(unless (for-all string? args)
(error 'syntax-error "invalid argument" args))
(error 'expander "invalid syntax"
(stx->datum x) (apply string-append args))))
(raise
(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)))