We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a9972b commit b83f6fdCopy full SHA for b83f6fd
1 file changed
lua/advdupe2/sh_codec.lua
@@ -343,11 +343,13 @@ local function deserialize(str, read)
343
tables = {}
344
reference = 0
345
buff = file.Open("ad2temp.txt","wb","DATA")
346
+ if not buff then error("Failed to open file data/ad2temp.txt for writing!") end
347
buff:Write(str)
348
buff:Flush()
349
buff:Close()
350
351
buff = file.Open("ad2temp.txt","rb", "DATA")
352
+ if not buff then error("Failed to open file data/ad2temp.txt for reading!") end
353
local success, tbl = pcall(read)
354
355
0 commit comments