Checking the error code for a simple syntax error using a callback.