mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
consistent use of utils.errorMessage
This commit is contained in:
parent
545432152f
commit
97f22a3543
@ -33,7 +33,7 @@ class TemplateGenerator {
|
|||||||
fs.mkdirpSync(utils.dirname(tmpFilePath));
|
fs.mkdirpSync(utils.dirname(tmpFilePath));
|
||||||
utils.downloadFile(url, tmpFilePath, (err) => {
|
utils.downloadFile(url, tmpFilePath, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err.red);
|
console.error(utils.errorMessage(err).red);
|
||||||
console.error('Does the template really exist?'.red);
|
console.error('Does the template really exist?'.red);
|
||||||
console.error(`Embark's supported templates: https://embark.status.im/templates/`.green);
|
console.error(`Embark's supported templates: https://embark.status.im/templates/`.green);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
@ -88,7 +88,7 @@ class TemplateGenerator {
|
|||||||
console.log(__('Installing packages...').green);
|
console.log(__('Installing packages...').green);
|
||||||
utils.runCmd('npm install', null, (err) => {
|
utils.runCmd('npm install', null, (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.error(err.red);
|
console.error(utils.errorMessage(err).red);
|
||||||
}
|
}
|
||||||
console.log(__('Init complete').green);
|
console.log(__('Init complete').green);
|
||||||
console.log('\n' + __('App ready at ').green + templatePath);
|
console.log('\n' + __('App ready at ').green + templatePath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user