Page 1 of 1

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

Posted: Mon May 21, 2018 10:05 am
by drunken_munki
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.

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

Posted: Mon May 21, 2018 10:18 am
by bartbes
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?

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

Posted: Mon May 21, 2018 10:28 am
by drunken_munki
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.