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 bc421ee commit 58a0241Copy full SHA for 58a0241
static/app/views/onboarding/components/useScmRepoSelection.ts
@@ -1,4 +1,5 @@
1
import {useState} from 'react';
2
+import * as Sentry from '@sentry/react';
3
4
import {addErrorMessage} from 'sentry/actionCreators/indicator';
5
import {t} from 'sentry/locale';
@@ -104,7 +105,8 @@ export function useScmRepoSelection({
104
105
},
106
});
107
onSelect({...optimistic, ...created});
- } catch {
108
+ } catch (error) {
109
+ Sentry.captureException(error);
110
addErrorMessage(t('Failed to select repository'));
111
onSelect(undefined);
112
} finally {
0 commit comments