Skip to content

Commit 285a3b6

Browse files
Bowl42claude
andcommitted
fix(search): log warning when page fetch fails during indexing
Add console.warn so that failed fetches are visible in the developer console, making it easier to debug missing search results. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f25d534 commit 285a3b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/plugins/search/search.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ export async function init(config, vm) {
338338
await saveData(config.maxAge, expireKey);
339339
}
340340
},
341-
async _error => {
341+
async error => {
342+
console.warn(`[Docsify] Failed to fetch ${path} for search indexing`, error);
342343
if (len === ++count) {
343344
await saveData(config.maxAge, expireKey);
344345
}

0 commit comments

Comments
 (0)