Fix PatchTree incorrect changeList entries on decode failure (#804)

This commit is contained in:
Kenneth Loeffler
2023-10-22 16:58:12 -07:00
committed by GitHub
parent 834c8cdbca
commit feac29ea40

View File

@@ -233,7 +233,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
addProp( addProp(
prop, prop,
if currentSuccess then currentValue else "[Error]", if currentSuccess then currentValue else "[Error]",
if incomingSuccess then incomingValue else next(incoming) if incomingSuccess then incomingValue else select(2, next(incoming))
) )
end end
@@ -359,7 +359,7 @@ function PatchTree.build(patch, instanceMap, changeListHeaders)
if success then if success then
table.insert(changeList, { prop, "N/A", incomingValue }) table.insert(changeList, { prop, "N/A", incomingValue })
else else
table.insert(changeList, { prop, "N/A", next(incoming) }) table.insert(changeList, { prop, "N/A", select(2, next(incoming)) })
end end
end end