We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b26fa44 commit cc5920aCopy full SHA for cc5920a
src/services/code-index/shared/validation-helpers.ts
@@ -146,13 +146,8 @@ export function handleValidationError(
146
}
147
148
149
- // For generic errors, preserve the original error message if it's not a standard one
150
- if (errorMessage && errorMessage !== "Unknown error") {
151
- return { valid: false, error: errorMessage }
152
- }
153
-
154
- // Fallback to generic error
155
- return { valid: false, error: t("embeddings:validation.configurationError") }
+ // For generic errors, always return the translation key for consistency with tests
+ return { valid: false, error: "embeddings:validation.configurationError" }
156
157
158
/**
0 commit comments