ParseError thrown

syntax error, unexpected token "else", expecting end of file