chore: throw error when no search results found
This commit is contained in:
@ -384,6 +384,9 @@ export async function deepResearch({
|
||||
maxResults: 5,
|
||||
lang: languageCode,
|
||||
})
|
||||
if (!results.length) {
|
||||
throw new Error(t('webBrowsing.noSearchResult'))
|
||||
}
|
||||
console.log(
|
||||
`[DeepResearch] Searched "${searchQuery.query}", found ${results.length} contents`,
|
||||
)
|
||||
|
Reference in New Issue
Block a user