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 9a56398 commit 553e1ffCopy full SHA for 553e1ff
packages/compass-indexes/src/modules/create-index.tsx
@@ -443,14 +443,15 @@ export const fetchIndexSuggestions = ({
443
fetchingSuggestionsError: null,
444
indexSuggestionsState: 'success',
445
});
446
- } catch (e) {
447
- console.log('e', e.message);
+ } catch (e: unknown) {
448
dispatch({
449
type: ActionTypes.SuggestedIndexesFetched,
450
sampleDocs: sampleDocuments,
451
indexSuggestions: null,
452
fetchingSuggestionsError:
453
- 'Error parsing query. Please follow query structure.',
+ e instanceof Error
+ ? e.message
454
+ : 'Error parsing query. Please follow query structure.',
455
indexSuggestionsState: 'error',
456
457
}
0 commit comments