mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
refactor(nuxi): provide better advice on failing clone (#5155)
This commit is contained in:
parent
5dbc112418
commit
c1f728ee54
@ -46,7 +46,7 @@ export default defineNuxtCommand({
|
|||||||
await tiged.clone(dstDir)
|
await tiged.clone(dstDir)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.toString().includes('could not find commit hash')) {
|
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)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
throw e
|
throw e
|
||||||
|
Loading…
Reference in New Issue
Block a user