From e2ff1e39b1a8ede6ba26e958a580081e5aa49adf Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 6 May 2022 16:02:07 -0400 Subject: [PATCH] fix: #10588 exit code 1 on failed plugin activation --- src/cli/manage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/manage.js b/src/cli/manage.js index 8188b10892..e8c565c87d 100644 --- a/src/cli/manage.js +++ b/src/cli/manage.js @@ -45,10 +45,12 @@ async function activate(plugin) { type: 'plugin-activate', text: plugin, }); + + process.exit(0); } catch (err) { winston.error(`An error occurred during plugin activation\n${err.stack}`); + process.exit(1); } - process.exit(0); } async function listPlugins() {