fix: error on `reset -p` if plugin is not active

No need to throw error if plugin was not active, just silently OK
v1.18.x
Julian Lam 5 years ago
parent 1e5621c049
commit 7f58e3ab09

@ -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);

Loading…
Cancel
Save