diff --git a/lib/utils/template_generator.js b/lib/utils/template_generator.js index 259144af..0ed45925 100644 --- a/lib/utils/template_generator.js +++ b/lib/utils/template_generator.js @@ -22,7 +22,11 @@ class TemplateGenerator { console.log(__('Installing Template from ' + uri + '....').green); fs.mkdirpSync(utils.dirname(tmpFilePath)); - utils.downloadFile(url, tmpFilePath, () => { + utils.downloadFile(url, tmpFilePath, (err) => { + if (err) { + console.error(err.red); + process.exit(1); + } utils.extractZip(tmpFilePath, fspath, { map: file => { let fixed_path = file.path.split('/');