Better error message for non-keywords

svn: r1106
This commit is contained in:
Eli Barzilay 2005-10-19 15:14:28 +00:00
parent 9eb9d4e040
commit 04d36492b5

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)