Skip to content

Commit 3bdaf39

Browse files
author
Chris John
committed
Adding Exception for incorrect entry Scenarios and removing confusing warning message
1 parent ae3f2a6 commit 3bdaf39

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/Toolbar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ async function showGitOperationDialog(
4848
});
4949
let retry = false;
5050
while (!result.button.accept) {
51-
retry = true;
5251
const credentials = await showDialog({
5352
title: 'Git credentials required',
5453
body: new GitCredentialsForm(

src/widgets/gitClone.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,10 @@ async function makeApiCall(
7979
// try to clone again
8080
response = await model.clone(path, cloneUrl, result.value);
8181
} else {
82-
showErrorMessage('Clone failed', response.message, [
83-
Dialog.warnButton({ label: 'DISMISS' })
84-
]);
85-
break;
82+
throw new Error(response.message);
8683
}
84+
} else if (response.code === 128) {
85+
throw new Error(response.message);
8786
}
8887
}
8988
} catch (error) {

0 commit comments

Comments
 (0)