mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Cleanup error message on invalid type
This commit is contained in:
parent
ed167c71c1
commit
36b9489507
1 changed files with 2 additions and 2 deletions
|
@ -2005,12 +2005,12 @@
|
|||
(lambda (obj)
|
||||
(if (eq? (vector-ref obj 1) name)
|
||||
(vector-ref (vector-ref obj 2) idx)
|
||||
(error "Invalid type" obj "expected" name))))
|
||||
(error "Invalid type" obj 'expected name))))
|
||||
(define (make-setter sym name idx)
|
||||
(lambda (obj val)
|
||||
(if (eq? (vector-ref obj 1) name)
|
||||
(vector-set! (vector-ref obj 2) idx val)
|
||||
(error "Invalid type" obj "expected" name))))
|
||||
(error "Invalid type" obj 'expected name))))
|
||||
|
||||
;; Find index of element in list, or #f if not found
|
||||
(define _list-index
|
||||
|
|
Loading…
Add table
Reference in a new issue