From c8eec064b13f42795d92be11b43d2ff582ec88a9 Mon Sep 17 00:00:00 2001 From: Subramanian Venkatesan Date: Wed, 12 Sep 2018 19:27:19 +0530 Subject: [PATCH] log the error --- lib/modules/plugin_cmd/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/modules/plugin_cmd/index.js b/lib/modules/plugin_cmd/index.js index 778144e1..b840c51a 100644 --- a/lib/modules/plugin_cmd/index.js +++ b/lib/modules/plugin_cmd/index.js @@ -43,7 +43,9 @@ class PluginCommand { } ], (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`); });