Skip to content

Commit 9138272

Browse files
committed
fix(onboarding): Show error message on repo selection failure
1 parent a5189a4 commit 9138272

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {useState} from 'react';
22

3+
import {addErrorMessage} from 'sentry/actionCreators/indicator';
4+
import {t} from 'sentry/locale';
35
import type {
46
Integration,
57
IntegrationRepository,
@@ -102,6 +104,7 @@ export function useScmRepoSelection({
102104
});
103105
onSelect({...optimistic, ...created});
104106
} catch {
107+
addErrorMessage(t('Failed to select repository'));
105108
onSelect(undefined);
106109
} finally {
107110
setBusy(false);

0 commit comments

Comments
 (0)