add an error check

related to PR 13346
This commit is contained in:
Robby Findler 2013-05-01 16:42:45 -05:00
parent 27503c3ae9
commit 79e10348b3

View File

@ -628,6 +628,8 @@
(let ([make-superimpose
(lambda (get-h get-v get-th name)
(lambda boxes
(when (null? boxes)
(error name "expected at least one argument, got none"))
(unless (andmap pict? boxes)
(error name "expected all picts as arguments, got ~a"
(apply string-append (add-between (map (λ (x) (format "~e" x)) boxes) " "))))