call back with errors instead of throwing within the Storage module

This commit is contained in:
ansuz
2020-03-24 13:31:03 -04:00
parent 1240f4a2a5
commit e128683ffb
7 changed files with 30 additions and 12 deletions

View File

@@ -101,7 +101,10 @@ Logger.create = function (config, cb) {
Store.create({
filePath: config.logPath,
}, function (store) {
}, function (err, store) {
if (err) {
throw err;
}
ctx.store = store;
var logger = createMethods(ctx);
logger.shutdown = function () {