add an error check
related to PR 13346
This commit is contained in:
parent
27503c3ae9
commit
79e10348b3
|
@ -628,6 +628,8 @@
|
||||||
(let ([make-superimpose
|
(let ([make-superimpose
|
||||||
(lambda (get-h get-v get-th name)
|
(lambda (get-h get-v get-th name)
|
||||||
(lambda boxes
|
(lambda boxes
|
||||||
|
(when (null? boxes)
|
||||||
|
(error name "expected at least one argument, got none"))
|
||||||
(unless (andmap pict? boxes)
|
(unless (andmap pict? boxes)
|
||||||
(error name "expected all picts as arguments, got ~a"
|
(error name "expected all picts as arguments, got ~a"
|
||||||
(apply string-append (add-between (map (λ (x) (format "~e" x)) boxes) " "))))
|
(apply string-append (add-between (map (λ (x) (format "~e" x)) boxes) " "))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user