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

Single number as error message

Started by NanoBob, 21 June 2016 - 12:48 PM
NanoBob #1
Posted 21 June 2016 - 02:48 PM
My program (source code) crashes when running and the error output is "7" (sometimes "6"). Afterwards whilst testing it by terminating a program instead of displaying "terminated" it once again displays "7".
The program doesn't just run out of code to run either as I have a print() at the end of the program to indicate that point. Which is never printed.

Computercraft version 1.75, ftb logs shows no errors.



Furthermore, when terminating the shell I get another an index out of bounds exception, with again the "7"



Any idea what caused this? Or what the actual error message behind "7" would be?
Edited on 21 June 2016 - 01:00 PM
NanoBob #2
Posted 21 June 2016 - 03:07 PM
I've found the issue, the issue was me comparing nil to a number. However that doesnt explain why the error wouldn't show up properly, so if somebody knows I'd still be interested in finding out why
KingofGamesYami #3
Posted 21 June 2016 - 03:09 PM
Do you have any mods other than computercraft?
NanoBob #4
Posted 21 June 2016 - 03:17 PM
Do you have any mods other than computercraft?
Yes it's a modpack. (Sky factory 2.5).

Edit: It's not just a specific error. It seems like all errors are showing up simply as a number instead of an actual error.
Edited on 21 June 2016 - 01:19 PM
apemanzilla #5
Posted 21 June 2016 - 03:58 PM
Restarting the game should fix it. I've encountered this bug before.