fix syntax error check in 'bitmap'
closes PR 14763
This commit is contained in:
parent
c89434d56b
commit
d46b097bc8
|
@ -1356,9 +1356,9 @@
|
||||||
(eq? (car arg) 'planet))
|
(eq? (car arg) 'planet))
|
||||||
(raise-syntax-error 'bitmap "planet paths not yet supported" stx)]
|
(raise-syntax-error 'bitmap "planet paths not yet supported" stx)]
|
||||||
[(symbol? arg)
|
[(symbol? arg)
|
||||||
(let ([pieces (regexp-split #rx"/" (symbol->string arg))])
|
(define pieces (regexp-split #rx"/" (symbol->string arg)))
|
||||||
(cond
|
(cond
|
||||||
[(null? pieces)
|
[(or (null? pieces) (null? (cdr pieces)))
|
||||||
(raise-syntax-error 'bitmap "expected a path with a / in it" stx)]
|
(raise-syntax-error 'bitmap "expected a path with a / in it" stx)]
|
||||||
[else
|
[else
|
||||||
(define fn (last pieces))
|
(define fn (last pieces))
|
||||||
|
@ -1372,7 +1372,7 @@
|
||||||
(format "could not find ~s, expected it to be in ~a"
|
(format "could not find ~s, expected it to be in ~a"
|
||||||
arg candidate)
|
arg candidate)
|
||||||
stx))
|
stx))
|
||||||
(cons fn colls)]))]
|
(cons fn colls)])]
|
||||||
[(string? arg)
|
[(string? arg)
|
||||||
(path->complete-path
|
(path->complete-path
|
||||||
arg
|
arg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user