Skip to content

Commit 017b825

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ 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`)) {
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.`)
103103
} 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.`)
105105
} else {
106106
throw error;
107107
}

0 commit comments

Comments
 (0)