From 5a319334210f1a69edc3d749d0104c361a46f0b8 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 7 Jun 2018 20:04:00 +0100 Subject: [PATCH] Added all errors to be in verbose --- FactorioSoftmodManager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/FactorioSoftmodManager.lua b/FactorioSoftmodManager.lua index 238cd39e..d78b8959 100644 --- a/FactorioSoftmodManager.lua +++ b/FactorioSoftmodManager.lua @@ -389,6 +389,7 @@ Manager.error = setmetatable({ -- if the error constant is given crash game if err == rawget(tbl,'__error_const') then Manager.verbose('Force Stop','errorCaught') rawget(tbl,'__error_call')('Force Stop',2) end -- other wise treat the call as if its been passed an err string + Manager.verbose('An error has occurred: '..err,'errorCaught') if #tbl > 0 then -- there is at least one error handler loaded; loops over the error handlers for handler_name,callback in pairs(tbl) do