def testdownload_and_preprocess_image_first_fails_raise_error_when_not_returning_individual_error(
            self, mock_preprocess, mock_download_image):
        """First URL fails, skip the others."""
        content = [
            "http://invalid-url.com/fail-first.jpg",
            TestImageUrls.IMAGE1.value,
            TestImageUrls.IMAGE2.value
        ]
        preprocessor = CLIPPreprocessor()

        with self.assertRaises(MediaDownloadError) as context:
            download_and_preprocess_media(content=content, preprocessor=preprocessor,
                                          preprocessing_config=self.preprocessing_config, return_individual_error=False)
        self.assertIn("This image does not exist in the test data", str(context.exception))

        mock_download_image.assert_called()
        self.assertEqual(1, mock_download_image.call_count)
        mock_preprocess.assert_not_called()
First URL fails, skip the others.
tests/unit_tests/marqo/inference/media_download_and_preprocess/test_chunk_download_preprocess_image_content.py