hide-errors: hide and ignore all lua errors

This commit is contained in:
shagu
2021-09-02 17:57:50 +02:00
parent ca7eb2d138
commit dc73a1feef
3 changed files with 18 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
local _G = _G or getfenv(0)
local module = ShaguTweaks:register({
title = "Hide Errors",
description = "Hides and ignores all Lua errors produced by broken addons.",
enabled = nil,
})
module.enable = function(self)
error = function() return end
seterrorhandler(error)
end