call back with errors instead of throwing within the Storage module
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user