Pass strings to raise-type-error
.
Closes PR 13178.
This commit is contained in:
parent
db36b91d1f
commit
60410356cc
|
@ -34,9 +34,9 @@
|
|||
[(integer-in 0 15) [hot-spot-x 0]]
|
||||
[(integer-in 0 15) [hot-spot-y 0]])
|
||||
(unless (is-16x16? image)
|
||||
(raise-type-error (init-name 'cursor%) '|bitmap (16x16 monochrome)| image))
|
||||
(raise-type-error (init-name 'cursor%) "bitmap (16x16 monochrome)" image))
|
||||
(unless (is-16x16? mask)
|
||||
(raise-type-error (init-name 'cursor%) '|bitmap (16x16 monochrome)| mask))
|
||||
(raise-type-error (init-name 'cursor%) "bitmap (16x16 monochrome)" mask))
|
||||
(let ([c (new cursor-driver%)])
|
||||
(send c set-image image mask hot-spot-x hot-spot-y)
|
||||
c)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user