log the error
This commit is contained in:
parent
b2d6421ea6
commit
c8eec064b1
|
@ -43,7 +43,9 @@ class PluginCommand {
|
||||||
}
|
}
|
||||||
], (err) => {
|
], (err) => {
|
||||||
if(err) {
|
if(err) {
|
||||||
return callback(`Error installing npm package ${npmPackage}. Please visit https://embark.status.im/plugins/ for more info`);
|
let errorMessage = `Error installing npm package ${npmPackage}. Please visit https://embark.status.im/plugins/ for all supported plugins`;
|
||||||
|
self.embark.logger.error(errorMessage);
|
||||||
|
return callback('Error occurred');
|
||||||
}
|
}
|
||||||
callback(null, `npm package ${npmPackage} successfully installed as a plugin`);
|
callback(null, `npm package ${npmPackage} successfully installed as a plugin`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue