Better error message for non-keywords

svn: r1106

original commit: 04d36492b5ac2157e1691d38629df2fcd1a69e43
This commit is contained in:
Eli Barzilay 2005-10-19 15:14:28 +00:00
parent 6b657c26ed
commit f1d98beb31

View File

@ -267,8 +267,8 @@
#'expr)
#'(if (null? body*)
expr
(error* 'name "non-keywords in arguments: ~e"
body*)))))))))
(error* 'name "expecting a ~s keyword got: ~e"
'keywords (car body*))))))))))
;; ------------------------------------------------------------------------
;; generates the part of the body that deals with rest-related stuff
(define (make-keys-body expr)