ErrorFix - avoid those pesky nils!

Started by SquidDev, Aug 19, 2018, 05:52 pm

Previous topic - Next topic

SquidDev

Aug 19, 2018, 05:52 pm Last Edit: Aug 19, 2018, 05:59 pm by SquidDev
Are you fed up of irritating "attempt to index nil" errors? Have you lost all motivation after seeing just another "attempt to perform arithmetic on a nil value"? Well, we have a solution:

ErrorFixFixes errors, so you don't have to
ErrorFix utilises the latest advances in language development in order to detect when nil-related errors occur and magically resolve them.

To get started, simply run wget https://raw.githubusercontent.com/SquidDev-CC/random-programs/master/error-fix.lua startup/10-errorfix.lua in your CraftOS shell. After that, enjoy your nil-related-error* free experience!

Changelog
  • 1.0.0: Initial release of ErrorFix
  • 1.1.0: Extend ErrorFix to handle numbers, strings, booleans, and functions.

*Note, this does not imply bug-free experience. I am not responsible for any damage this may cause, though happily take responsibility for loss of sanity.
GitHub | CC:Tweaked: A ComputerCraft fork | Plethora: A peripheral mod

osmarks

Wonderful. My debugging is going to get much easier now that there are no errors!