mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Skip in case of 'plugin' command only on not found error
This commit is contained in:
parent
b2cf1025c7
commit
16f358115a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user