From 7f58e3ab098150c3572e886845a329b45f860f6c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 29 Sep 2020 14:01:19 -0400 Subject: [PATCH] fix: error on `reset -p` if plugin is not active No need to throw error if plugin was not active, just silently OK --- src/cli/reset.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cli/reset.js b/src/cli/reset.js index 0e7cfddf1f..1368962246 100644 --- a/src/cli/reset.js +++ b/src/cli/reset.js @@ -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);