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,