fix: Fix internal unrecognized command error processing

This commit is contained in:
Mariusz Nowak 2022-03-18 14:02:10 +01:00 committed by Piotr Grzesik
parent 1f12b19a22
commit a89e36a0e7

View File

@ -487,10 +487,10 @@ class PluginManager {
// Invalid command, can happen only when Framework is used programmatically,
// as otherwise command is validated in main script
throw new new ServerlessError(
throw new ServerlessError(
`Unrecognized command "${commandsArray.join(' ')}"`,
'UNRECOGNIZED COMMAND'
)();
);
},
{ commands: this.commands }
);