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:
Julian Lam
2020-09-29 14:01:19 -04:00
parent 1e5621c049
commit 7f58e3ab09

View File

@@ -135,7 +135,6 @@ async function resetPlugin(pluginId) {
} else {
winston.warn('[reset] Plugin `%s` was not active on this forum', pluginId);
winston.info('[reset] No action taken.');
throw new Error('plugin-not-active');
}
} catch (err) {
winston.error('[reset] Could not disable plugin: ' + pluginId + ' encountered error %s', err.stack);