From a89e36a0e73df141a486b8a151bb2cfb228a9f5d Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Fri, 18 Mar 2022 14:02:10 +0100 Subject: [PATCH] fix: Fix internal unrecognized command error processing --- lib/classes/plugin-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/plugin-manager.js b/lib/classes/plugin-manager.js index 0815f53ff..4fb484ed5 100644 --- a/lib/classes/plugin-manager.js +++ b/lib/classes/plugin-manager.js @@ -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 } );