Available since LÖVE 0.9.0 |
This callback is not supported in earlier versions. |
Callback function triggered when a Thread encounters an error.
love.threaderror( thread, errorstr )
Thread thread
string errorstr
Nothing.
function love.load() mythread = love.thread.newThread("thread.lua") mythread:start() end function love.threaderror(thread, errorstr) print("Thread error!\n"..errorstr) -- thread:getError() will return the same error string now. end