Log Redis connection errors instead of crashing

This commit is contained in:
Dominik Krejcik 2012-11-29 01:33:19 +00:00
parent c252926f34
commit 035c42eb9d
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ exports.initialize = function initializeSchema(schema, callback) {
}
}
});
schema.client.on('error', function (error) {
console.log(error);
})
var clientWrapper = new Client(schema.client);