chore: more lint cleanup.

This commit is contained in:
cpojer
2026-01-31 16:16:13 +09:00
parent b7e401b6b6
commit 009b16fab8
3 changed files with 15 additions and 18 deletions

View File

@@ -181,9 +181,9 @@ export async function createEmbeddingProvider(
fallbackReason: reason,
};
} catch (fallbackErr) {
// oxlint-disable-next-line preserve-caught-error
throw new Error(
`${reason}\n\nFallback to ${fallback} failed: ${formatError(fallbackErr)}`,
{ cause: primaryErr },
{ cause: fallbackErr },
);
}