1
0

Slightly better error message when mode is unknown.

This commit is contained in:
Jon Michael Aanes 2019-06-10 19:41:59 +02:00
parent 7769d53040
commit 69f0d85100

View File

@ -297,7 +297,7 @@ function SpriteSheet:setOrigin (ox, oy, mode)
self.origin_x = self.tile_width * ox
self.origin_y = self.tile_height * oy
else
error('Unknown origin mode "%s"', mode)
error('Unknown origin mode %s (%s)', mode, type(mode))
end
end