Check for the correct error.