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
// Specialised errors with recommended actions to take
101
-
if (error.message.includes('error: unknown option`)) {
102
-
throw new Error(`Error: ${error.message} \n\n Suggestion: Try updating your git to the latest version, then trying to run this command again.`)
101
+
if (error.message.includes('error: unknown option')) {
102
+
throw new Error(`${error.message} \n\nSuggestion: Try updating your git to the latest version, then trying to run this command again.`)
103
103
} else if (error.message.includes('is not recognized as an internal or external command,') || error.message.includes('command not found')) {
104
-
throw new Error(`Error: ${error.message} \n\n Suggestion: It appears that git is not installed, try installing git then trying to run this command again.`)
104
+
throw new Error(`${error.message} \n\nSuggestion: It appears that git is not installed, try installing git then trying to run this command again.`)
0 commit comments