mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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',
|
type: 'plugin-activate',
|
||||||
text: plugin,
|
text: plugin,
|
||||||
});
|
});
|
||||||
process.exit(0);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
winston.error('An error occurred during plugin activation\n' + err.stack);
|
winston.error('An error occurred during plugin activation\n' + err.stack);
|
||||||
throw err;
|
|
||||||
}
|
}
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function listPlugins() {
|
async function listPlugins() {
|
||||||
|
|||||||
Reference in New Issue
Block a user