love.graphics.setColor(nil, nil, nil, nil) [Solved]

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
User avatar
drunken_munki
Party member
Posts: 134
Joined: Tue Mar 29, 2011 11:05 pm

love.graphics.setColor(nil, nil, nil, nil) [Solved]

Post by drunken_munki » Mon May 21, 2018 10:05 am

love.graphics.setColor(nil, nil, nil, nil) will cause LOVE (v11.1) to exit with no error handler callback in my code.

Anyone know why this might not propagate an error correctly?

Cheers, as always.
Last edited by drunken_munki on Mon May 21, 2018 10:55 am, edited 3 times in total.

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: love.graphics.setColor(nil, nil, nil, nil)

Post by bartbes » Mon May 21, 2018 10:18 am

Doesn't for me, but if you trigger an error in an error handler love prevents an infinite loop and only prints the error to the terminal. Do you also have a custom error handler?

User avatar
drunken_munki
Party member
Posts: 134
Joined: Tue Mar 29, 2011 11:05 pm

Re: love.graphics.setColor(nil, nil, nil, nil)

Post by drunken_munki » Mon May 21, 2018 10:28 am

Ah you might be right.

I'm using an example from the wiki that I modified to print out to a custom log file. I just commented this out and the default error handler works fine!

Thanks for that, I will check what is causing me the issue in my code.


Turns out I had a typo in my error handler code, all better now.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests