fixed a somewhat awkward error message that made 'system' look awkward
(manually adapted)
(cherry picked from commit f2b9cdaadd
)
This commit is contained in:
parent
fd7c2ad407
commit
913f6365f9
|
@ -78,17 +78,20 @@
|
|||
(raise-argument-error
|
||||
who
|
||||
(string-append "(or/c path-string?\n"
|
||||
" (and/c bytes? (lambda (bs) (not (memv 0 (bytes->list bs))))))")
|
||||
" (and/c bytes? bytes-no-nuls?))")
|
||||
s)))])
|
||||
args)
|
||||
|
||||
;; MF: fxing a somewhat awkward looking error message. Comment for Matthew in case he wants to improve on it.
|
||||
(provide string-no-nuls? bytes-no-nuls?)
|
||||
|
||||
(define (check-command who str)
|
||||
(unless (or (string-no-nuls? str)
|
||||
(bytes-no-nuls? str))
|
||||
(raise-argument-error
|
||||
who
|
||||
(string-append "(or/c (and/c string? (lambda (s) (not (memv #\\nul (string->list s)))))\n"
|
||||
" (and/c bytes? (lambda (bs) (not (memv 0 (bytes->list bs))))))")
|
||||
(string-append "(or/c (and/c string? string-no-nuls?)\n"
|
||||
" (and/c bytes? bytes-no-nuls?))")
|
||||
str)))
|
||||
|
||||
;; Old-style functions: ----------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user