How can I close window if game has thrown error?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
fitincontact
Prole
Posts: 1
Joined: Tue Nov 12, 2019 7:43 pm

How can I close window if game has thrown error?

Post 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?
User avatar
pgimeno
Party member
Posts: 3550
Joined: Sun Oct 18, 2015 2:58 pm

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

Post by pgimeno »

Code: Select all

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

Who is online

Users browsing this forum: No registered users and 99 guests