refactor(nuxi): provide better advice on failing clone (#5155)

This commit is contained in:
Harlan Wilton 2022-06-01 16:43:24 +10:00 committed by GitHub
parent 5dbc112418
commit c1f728ee54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ export default defineNuxtCommand({
await tiged.clone(dstDir)
} catch (e) {
if (e.toString().includes('could not find commit hash')) {
consola.warn('Make sure you have installed `git` correctly')
consola.error(`Failed to clone template from \`${src}\`. Please check the repo is valid and that you have installed \`git\` correctly.`)
process.exit(1)
}
throw e