mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: more graceful error handling and output for cli/reset
This commit is contained in:
		| @@ -77,8 +77,8 @@ exports.reset = function (options, callback) { | ||||
|  | ||||
| 	async.series([db.init].concat(tasks), function (err) { | ||||
| 		if (err) { | ||||
| 			winston.error('[reset] Errors were encountered during reset', err); | ||||
| 			throw err; | ||||
| 			winston.error('[reset] Errors were encountered during reset -- ' + err.message); | ||||
| 			return callback(err); | ||||
| 		} | ||||
|  | ||||
| 		winston.info('[reset] Reset complete'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user