Skip to content

Commit 58a0241

Browse files
committed
fix(onboarding): Report repo selection errors to Sentry
1 parent bc421ee commit 58a0241

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static/app/views/onboarding/components/useScmRepoSelection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {useState} from 'react';
2+
import * as Sentry from '@sentry/react';
23

34
import {addErrorMessage} from 'sentry/actionCreators/indicator';
45
import {t} from 'sentry/locale';
@@ -104,7 +105,8 @@ export function useScmRepoSelection({
104105
},
105106
});
106107
onSelect({...optimistic, ...created});
107-
} catch {
108+
} catch (error) {
109+
Sentry.captureException(error);
108110
addErrorMessage(t('Failed to select repository'));
109111
onSelect(undefined);
110112
} finally {

0 commit comments

Comments
 (0)