Update nil Ref check and property decode warning to new Rojo protocol (#466)

* Skip empty Refs in new Rojo protocol

* Update warning message for new Rojo protocol
This commit is contained in:
Ayuka
2021-08-09 13:14:59 -05:00
committed by GitHub
parent e1f9eaefa9
commit 6cc2e919c0
2 changed files with 4 additions and 2 deletions

View File

@@ -75,7 +75,9 @@ local function diff(instanceMap, virtualInstances, rootId)
changedProperties[propertyName] = virtualValue
end
else
Log.warn("Failed to decode property of type {}", virtualValue.Type)
-- virtualValue can be empty in certain cases, and this may print out nil to the user.
local propertyType = next(virtualValue)
Log.warn("Failed to decode property of type {}", propertyType)
end
else
local err = existingValueOrErr