cs: fix some error-message formatting
Some Chez Scheme error messages were not converted correctly, leaving the values to be printed by Chez Scheme's printer.
This commit is contained in:
parent
f65560ed4c
commit
cd2d5f0ac7
|
@ -100,18 +100,18 @@
|
|||
irritants))]
|
||||
[(and (or (eq? who 'list-ref) (eq? who 'list-tail))
|
||||
(equal? str "index ~s is out of range for list ~s"))
|
||||
(values (string-append "index too large for list\n"
|
||||
(format-error-values (string-append "index too large for list\n"
|
||||
" index: ~s\n"
|
||||
" in: ~s")
|
||||
irritants)]
|
||||
[(and (or (eq? who 'list-ref) (eq? who 'list-tail))
|
||||
(equal? str "index ~s reaches a non-pair in ~s"))
|
||||
(values (string-append "index reaches a non-pair\n"
|
||||
(format-error-values (string-append "index reaches a non-pair\n"
|
||||
" index: ~s\n"
|
||||
" in: ~s")
|
||||
irritants)]
|
||||
[(or (eq? who 'memq) (eq? who 'memv))
|
||||
(values "not a proper list\n in: ~s" irritants)]
|
||||
(format-error-values "not a proper list\n in: ~s" irritants)]
|
||||
[(equal? str "~s is not a valid index for ~s")
|
||||
(cond
|
||||
[(exact-nonnegative-integer? (car irritants))
|
||||
|
|
Loading…
Reference in New Issue
Block a user