Skip to content

Commit

Permalink
fix: error on reset -p if plugin is not active
Browse files Browse the repository at this point in the history
No need to throw error if plugin was not active, just silently OK
  • Loading branch information
julianlam committed Sep 29, 2020
1 parent 1e5621c commit 7f58e3a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cli/reset.js
Expand Up @@ -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);
Expand Down

0 comments on commit 7f58e3a

Please sign in to comment.