log the error

This commit is contained in:
Subramanian Venkatesan 2018-09-12 19:27:19 +05:30
parent b2d6421ea6
commit c8eec064b1
1 changed files with 3 additions and 1 deletions

View File

@ -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`);
}); });