This commit is contained in:
htt-py
2023-10-24 07:53:12 +02:00
parent 1625085049
commit f05e766954
2 changed files with 2 additions and 2 deletions

View File

@@ -859,7 +859,7 @@ local function synsaveinstance(CustomOptions)
end
local ok, result = pcall(decompile, Script, Timeout, Timeout) -- ! This might break on Syn due to second param being bool or string (deprecated tho)
ldeccache[Script] = result
return ok and result or "--[[\n" .. result .. "\n]]"
return ok and result or "--[[Failed to decompile\nReason:\n" .. (result or "") .. "\n]]"
end
else
ldecompile = function()