This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KidBrine's profile picture

My errors are giving me the wrong line.

Started by KidBrine, 07 January 2017 - 10:30 PM
KidBrine #1
Posted 07 January 2017 - 11:30 PM
I'm making an API and i have it programmed to tell the user if they do something wrong but when it sends the error() message it gives the line that my function is on in the API file.
Bomb Bloke #2
Posted 07 January 2017 - 11:43 PM
Sounds like you want to set an error level of 2.

https://www.lua.org/pil/8.5.html
KidBrine #3
Posted 08 January 2017 - 12:22 AM
I had just figured this out before looking back here by looking into the term APIfile thx for the help though :)/>