mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: #9192, exit after logging error
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user