mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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 { | ||||
| 			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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user