Checking the error code for a simple syntax error