fix: more graceful error handling and output for cli/reset

This commit is contained in:
Julian Lam
2019-04-08 10:43:15 -04:00
parent 93b688d00e
commit d3ebda7370
2 changed files with 6 additions and 3 deletions

View File

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