File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ async function showGitOperationDialog(
48
48
} ) ;
49
49
let retry = false ;
50
50
while ( ! result . button . accept ) {
51
- retry = true ;
52
51
const credentials = await showDialog ( {
53
52
title : 'Git credentials required' ,
54
53
body : new GitCredentialsForm (
Original file line number Diff line number Diff line change @@ -79,11 +79,10 @@ async function makeApiCall(
79
79
// try to clone again
80
80
response = await model . clone ( path , cloneUrl , result . value ) ;
81
81
} else {
82
- showErrorMessage ( 'Clone failed' , response . message , [
83
- Dialog . warnButton ( { label : 'DISMISS' } )
84
- ] ) ;
85
- break ;
82
+ throw new Error ( response . message ) ;
86
83
}
84
+ } else if ( response . code === 128 ) {
85
+ throw new Error ( response . message ) ;
87
86
}
88
87
}
89
88
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments