Error check for syntax.