From 16f358115a7980da2bbafe7a795d050ec5d24c4d Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Fri, 6 Sep 2019 13:50:41 +0200 Subject: [PATCH] Skip in case of 'plugin' command only on not found error --- lib/classes/PluginManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/classes/PluginManager.js b/lib/classes/PluginManager.js index f8c35dc41..c525a194d 100644 --- a/lib/classes/PluginManager.js +++ b/lib/classes/PluginManager.js @@ -106,10 +106,8 @@ class PluginManager { try { Plugin = require(pluginPath); // eslint-disable-line global-require } catch (error) { - if (this.cliCommands[0] === 'plugin') { - return; - } if (isModuleNotFoundError(error, pluginPath)) { + if (this.cliCommands[0] === 'plugin') return; // Plugin not installed if (this.cliOptions.help) {