mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Clarifying error message on bad import spec.
This commit is contained in:
parent
93406a98ee
commit
1883561c57
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@
|
|||
(define (resolve-import x)
|
||||
(cond
|
||||
((not (and (pair? x) (list? x)))
|
||||
(error "invalid module syntax" x))
|
||||
(error "invalid import syntax" x))
|
||||
((and (memq (car x) '(prefix drop-prefix))
|
||||
(symbol? (car (cddr x))) (list? (cadr x)))
|
||||
(let ((mod-name+imports (resolve-import (cadr x))))
|
||||
|
|
Loading…
Add table
Reference in a new issue