Handle syntax errors