Skip to content

Commit 69db8be

Browse files
Update init.js.twig
1 parent cd839f4 commit 69db8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const initFunction = async () => {
9898
childProcess.execSync(gitPullCommands, { stdio: 'pipe', cwd: functionDir });
9999
} catch (error) {
100100
// Specialised errors with recommended actions to take
101-
if (error.message.includes('error: unknown option `--sparse')) {
101+
if (error.message.includes('error: unknown option`)) {
102102
throw new Error(`Error: ${error.message} \n\n Suggestion: Try updating your git to the latest version, then trying to run this command again.`)
103103
} else if (error.message.includes('is not recognized as an internal or external command,') || error.message.includes('command not found')) {
104104
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.`)

0 commit comments

Comments
 (0)