Slightly better error message when mode is unknown.
This commit is contained in:
parent
7769d53040
commit
69f0d85100
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user