Yea the error warnings of the engine are terrible. Also watch out for a similar error when you forget to put a ';'. It will say the line after the forgotten ; has a syntax error, when it's actually the line before.