mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fix: error on reset -p if plugin is not active
No need to throw error if plugin was not active, just silently OK
This commit is contained in:
@@ -135,7 +135,6 @@ async function resetPlugin(pluginId) {
|
|||||||
} else {
|
} else {
|
||||||
winston.warn('[reset] Plugin `%s` was not active on this forum', pluginId);
|
winston.warn('[reset] Plugin `%s` was not active on this forum', pluginId);
|
||||||
winston.info('[reset] No action taken.');
|
winston.info('[reset] No action taken.');
|
||||||
throw new Error('plugin-not-active');
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
winston.error('[reset] Could not disable plugin: ' + pluginId + ' encountered error %s', err.stack);
|
winston.error('[reset] Could not disable plugin: ' + pluginId + ' encountered error %s', err.stack);
|
||||||
|
|||||||
Reference in New Issue
Block a user