Well, that doesn’t sound at all fun.
Let me ask, just to be sure. Are you absolutely sure the debug messages you get don’t lead back to a specific file or even line in a file from your app?
In addition to errors that say, ‘error in this file on line X’, look for more generic ones like ‘error on line X’ without listing a file. Then, check that line in all of your files (tedious I know).
Other that than, I wouldn’t normally suggest something this radical, but if all you want to do is quash those errors, try this and see if it helps.
Add this to a module and require it at the top of main.lua:
-- myTimer.lua local lTimer\_cancel = timer.cancel local lTimer\_performWithDelay = timer.performWithDelay local lTimer\_pause = timer.pause local lTimer\_resume = timer.resume timer.cancel = function( timerID ) if( not timerID ) then return end pcall( function() lTimer\_cancel( timerID ) end ) end function timer.cancel( timerID ) if( not timerID ) then return end pcall( function() lTimer\_cancel( timerID ) end ) end function timer.performWithDelay( delay, listener , iterations ) iterations = iterations or 1 if( not delay ) then return end if( not listener ) then return end local success, timerID = pcall( function() return lTimer\_performWithDelay( delay, listener , iterations ) end ) return ( success ) and timerID or nil end function timer.pause( timerID ) if( not timerID ) then return end local success, pauseTime = pcall( function() return lTimer\_pause( timerID ) end ) return ( success ) and pauseTime or nil end function timer.resume( timerID ) if( not timerID ) then return end local success, resumeTime = pcall( function() return lTimer\_resume( timerID ) end ) return ( success ) and resumeTime or nil end
-- In main.lua require "myTimer"