event.errorMessage

Type String
Event unhandledError
Revision Current Public Release (2017.3135)
Keywords unhandledError, errorMessage

Overview

This value is the file, line number, and error message of the last runtime error when used with Runtime:addEventListener().

Example

local unhandledErrorListener = function( event )
    print( "We have a problem: " .. event.errorMessage )
end

Runtime:addEventListener( "unhandledError", unhandledErrorListener )