mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
provide helpful messages when template download fails
This commit is contained in:
parent
a4af0d8f5b
commit
a9865eedc5
@ -25,6 +25,8 @@ class TemplateGenerator {
|
||||
utils.downloadFile(url, tmpFilePath, (err) => {
|
||||
if (err) {
|
||||
console.error(err.red);
|
||||
console.error('Does the template really exist?'.red);
|
||||
console.error(`Embark's supported templates: https://embark.status.im/templates/`.green);
|
||||
process.exit(1);
|
||||
}
|
||||
utils.extractZip(tmpFilePath, fspath, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user