You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the error's code is a string then it means the code isn't the
235
236
// process's exit code but rather an error coming from Node's bowels,
236
237
// e.g., ENOENT.
237
-
if(typeoferr.code==='string'){
238
-
let{ message, code }=err
239
-
240
-
if(err.code==='ENOENT'){
241
-
if(GitProcess.pathExists(path)===false){
242
-
message='Unable to find path to repository on disk.'
243
-
code=RepositoryDoesNotExistErrorCode
244
-
}else{
245
-
message=`Git could not be found at the expected path: '${gitLocation}'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.`
246
-
code=GitNotFoundErrorCode
247
-
}
238
+
let{ message, code }=err
239
+
240
+
if(err.code==='ENOENT'){
241
+
if(GitProcess.pathExists(path)===false){
242
+
message='Unable to find path to repository on disk.'
243
+
code=RepositoryDoesNotExistErrorCode
244
+
}else{
245
+
message=`Git could not be found at the expected path: '${gitLocation}'. This might be a problem with how the application is packaged, so confirm this folder hasn't been removed when packaging.`
0 commit comments