fix: #9192, exit after logging error

This commit is contained in:
Barış Soner Uşaklı
2021-01-12 10:46:55 -05:00
parent 69419571a9
commit ef16cd2e6f

View File

@@ -41,11 +41,10 @@ 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);
throw err;
}
process.exit(0);
}
async function listPlugins() {