mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix: Fix internal unrecognized command error processing
This commit is contained in:
parent
1f12b19a22
commit
a89e36a0e7
@ -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 }
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user