ErrorCodes - jpbubble/NIL-isn-t-Lua GitHub Wiki

Error codes

Most errors speak for themselves, and if not, just write an issue ticked on them, and maybe I'll explain them. Please note, errors thrown by Lua and not by NIL won't be covered (duh!)

Codes

There are a few codes that I'll go in the deep about, as most errors will be prefixed by them. They actually stand for the process going on within NIL while the error was thrown. These merely served for my own debugging of NIL itself, but in case you wonder, here goes.

Code Explanation
NC Chopping. NIL chops the code up in little pieces to get a good view on what you wrote, and it this chopped code will later be fully parsed out.
NT Translation. Error happened during the actual translation
NL Loading. This error popped up while NIL was including external files in order to operate.
NR Runtime-errors. Although about 95% of those will just be generated by Lua itself, NIL can also throw these kinds of exceptions due to errors specific to NIL.
NI Internal error. These kinds of errors should never be possible unless a bug is at work. Should you ever get an error with the "NI" code as prefix, check the issue tracker to see if it's been reported already, and if not, report it!
NH This error can normally never happen UNLESS, somebody has been messing with the translated code, in other words, "hacked" it.