fix: remove atom.debugLabel reference

This commit is contained in:
richard 2024-06-01 14:56:44 -07:00 • committed by GitHub
parent 7bbd7a0adb
commit 1a65a4a0de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ local function validate(value: any, key: any)
if getmetatable(value) ~= nil then
error(`Cannot sync tables with metatables! Got {value} at key '{key}'`)
elseif store.isAtom(value) then
error(`Cannot sync nested atoms! Got atom '{value.debugLabel}' at key '{key}'`)
error(`Cannot sync nested atoms! Got atom at key '{key}'`)
elseif isUnsafeTable(value) then
error(
`Cannot sync tables unsupported by remote events! The value has the key '{key}'.\n\n`