Type String Event unhandledError Revision 2017.3060 Keywords unhandledError, errorMessage
This value is the file, line number, and error message of the last runtime error when used with Runtime:addEventListener().
local unhandledErrorListener = function( event ) print( "We have a problem: " .. event.errorMessage ) end Runtime:addEventListener( "unhandledError", unhandledErrorListener )