Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1183,10 +1183,26 @@ export async function processAndUpsertCommitDiff(
content: inputs[i],
});
} catch (ftsErr) {
// Keep the high-level line for log searchability, then surface the underlying
// D1 error shape on a second line so the next cron run produces actionable
// context (error name, vector_id, content/path sizes). See #135.
console.error(
`Failed to upsert FTS5 row for diff ${repo}@${commitSha}/${f.filename}:`,
ftsErr instanceof Error ? ftsErr.message : String(ftsErr),
);
console.error(
`FTS5 diff upsert detail (#135):`,
JSON.stringify({
errorName: ftsErr instanceof Error ? ftsErr.name : typeof ftsErr,
vectorId: v.id,
tokenizerKind: "code",
contentChars: inputs[i].length,
filePathChars: f.filename.length,
fileStatus: normaliseFileStatus(f.status),
commitSha,
repo,
}),
);
}
}

Expand Down
Loading