Prevent a channel from stopping on errors

Added by iNTERFACEWARE

A very simple way to run all your code in protected mode with pcall() and log errors instead of stopping

Source Code
local function ProtectedMain(Data)
   
   -- replace with real processing and real error handling
   error("Bang!")
   
   return "Some", "Data"
end

function main(Data)   
   local Success, Err = pcall(ProtectedMain, "DataIn")
   if not Success then
      iguana.logError("Skipping error: "..Err)
   end
end
Description
A very simple way to run all your code in protected mode with pcall() and log errors instead of stopping