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 715e039 commit 9104ab8Copy full SHA for 9104ab8
packages/compass-indexes/src/modules/regular-indexes.ts
@@ -187,8 +187,7 @@ function processError(error: string): string {
187
const httpCodePattern = /\b(4\d{2}|5\d{2})\b/; // Matches HTTP codes 400-599 anywhere in the string
188
189
if (internalCodePattern.test(error) || httpCodePattern.test(error)) {
190
- console.log(error);
191
- return 'Sorry, an unexpected error has occurred. Try refreshing the page or reporting the issue.';
+ return 'Sorry, an unexpected error has occurred. Try refreshing the page or reporting the issue if it persists.';
192
}
193
194
return error; // Return original error if it doesn't match the patterns
0 commit comments