Skip to content

Commit 4f3040c

Browse files
authored
don't try to add secretvalues
1 parent c9e5e3a commit 4f3040c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

DevTool.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,16 @@ function DevTool:AddData(data, dataName)
235235
return
236236
end
237237

238+
if issecrettable(data) then
239+
self:Print("Error: The data being added is a secret table. Aborting.")
240+
return
241+
end
242+
243+
if issecretvalue(data) then
244+
self:Print("Error: The data being added is a secret value. Aborting.")
245+
return
246+
end
247+
238248
if not dataName then
239249
dataName = tostring(data)
240250
end

0 commit comments

Comments
 (0)