Skip to content

Commit 9104ab8

Browse files
committed
specific
1 parent 715e039 commit 9104ab8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/compass-indexes/src/modules/regular-indexes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ function processError(error: string): string {
187187
const httpCodePattern = /\b(4\d{2}|5\d{2})\b/; // Matches HTTP codes 400-599 anywhere in the string
188188

189189
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.';
190+
return 'Sorry, an unexpected error has occurred. Try refreshing the page or reporting the issue if it persists.';
192191
}
193192

194193
return error; // Return original error if it doesn't match the patterns

0 commit comments

Comments
 (0)