Page 1 of 1

How can I close window if game has thrown error?

Posted: Tue Nov 12, 2019 8:00 pm
by fitincontact
Hi.
I use love.event.quit() for close game. But when I get error (blue window and error message) - love.event.quit() don't work.
How can I close window when I have got error?

Re: How can I close window if game has thrown error?

Posted: Wed Nov 13, 2019 3:34 am
by pgimeno

Code: Select all

function love.errorhandler(msg)
  -- doing nothing here will just exit quietly
end
See docs here: love.errorhandler