From 0407bd830200476e57d6994a31619e9f50573081 Mon Sep 17 00:00:00 2001 From: Matt Roelle Date: Sat, 15 Jan 2022 07:20:06 -0800 Subject: [PATCH] Fix bad string concat in error messages in spine lua runtime. (#2021) --- spine-lua/spine-lua/AnimationState.lua | 2 +- spine-lua/spine-lua/SkeletonJson.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-lua/spine-lua/AnimationState.lua b/spine-lua/spine-lua/AnimationState.lua index 555d1a040..7af750547 100644 --- a/spine-lua/spine-lua/AnimationState.lua +++ b/spine-lua/spine-lua/AnimationState.lua @@ -750,7 +750,7 @@ end function AnimationState:addAnimationByName (trackIndex, animationName, loop, delay) local animation = self.data.skeletonData:findAnimation(animationName) - if not animation then error("Animation not found: " + animationName, 2) end + if not animation then error("Animation not found: " .. animationName, 2) end return self:addAnimation(trackIndex, animation, loop, delay) end diff --git a/spine-lua/spine-lua/SkeletonJson.lua b/spine-lua/spine-lua/SkeletonJson.lua index 3ea740093..88b02e655 100644 --- a/spine-lua/spine-lua/SkeletonJson.lua +++ b/spine-lua/spine-lua/SkeletonJson.lua @@ -317,7 +317,7 @@ function SkeletonJson.new (attachmentLoader) if linkedMesh.skin then skin = skeletonData:findSkin(linkedMesh.skin) end if not skin then error("Skin not found: " .. linkedMesh.skin) end local parent = skin:getAttachment(linkedMesh.slotIndex, linkedMesh.parent) - if not parent then error("Parent mesh not found: " + linkedMesh.parent) end + if not parent then error("Parent mesh not found: " .. linkedMesh.parent) end if linkedMesh.inheritDeform then linkedMesh.mesh.deformAttachment = parent else @@ -486,7 +486,7 @@ function SkeletonJson.new (attachmentLoader) local _end = getValue(map, "end", nil) if _end then local slot = skeletonData:findSlot(_end) - if not slot then error("Clipping end slot not found: " + _end) end + if not slot then error("Clipping end slot not found: " .. _end) end clip.endSlot = slot end