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

CC Error Syntax?

Started by Doomzzday01, 25 November 2012 - 07:30 AM
Doomzzday01 #1
Posted 25 November 2012 - 08:30 AM
Hey, very noob question here, I'm used to Python exceptions, where the line on which the errror was found is always nicely pointed out, and i was wondering if Computercraft has something similar in its error messages? Going over line after line of code seems tedious.
In case there isn't, here is the error message, which i don't get anyway:
It's just a derpy little password program set to run at terminal startup.


CraftOS 1.4
bios:206: [string "startup"]:18: unexpected symbol

Startup is the name of my program but IDK if thats what its talking about. There isn't a string called 'startup' in my program tho.
thank you!
dissy #2
Posted 25 November 2012 - 08:36 AM
In this case the line number with the error is 18, in the file "startup"
"Unexpected symbol" typically is a type of syntax error.

It says string startup because the error is thrown from the bios, which presumably treats file names as strings.