From a9865eedc532d686160fc1339cb889ffcbb95a66 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Tue, 11 Sep 2018 15:44:54 -0500 Subject: [PATCH] provide helpful messages when template download fails --- lib/utils/template_generator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/template_generator.js b/lib/utils/template_generator.js index 0ed45925..1693bb49 100644 --- a/lib/utils/template_generator.js +++ b/lib/utils/template_generator.js @@ -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, {