From 50625433255c75da0d4aa6bc2aed778f9f2719f1 Mon Sep 17 00:00:00 2001 From: Eyal Sharon Date: Tue, 24 Jun 2025 13:02:12 +0300 Subject: [PATCH] More code suggestion fixes --- docs/docs/ai_search/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/ai_search/index.md b/docs/docs/ai_search/index.md index ccb315fc..fe7ffdc2 100644 --- a/docs/docs/ai_search/index.md +++ b/docs/docs/ai_search/index.md @@ -213,7 +213,7 @@ window.addEventListener('load', function() { return msg; } catch (error) { console.error('Error parsing results:', error); - throw "Error processing results"; + throw new Error("Error processing results"); } } @@ -229,7 +229,7 @@ window.addEventListener('load', function() { searchContainer.scrollIntoView({ behavior: 'smooth', block: 'start' }); try { - const msg = extractText(responseText) + const msg = extractText(responseText); marked.setOptions({ breaks: true,