indexzero/winston-mongodb — pull request #6 by yosefd (2012-02-02 19:47:28+00:00)
Title: Fix for mishandling of errors that led to exception

TypeError: Object false has no method 'collection'
at Array.0 (C:\anode\repo\node_modules\winston-mongodb\lib\winston-mongodb.js:74:14)
at flushPending (C:\anode\repo\node_modules\winston-mongodb\lib\winston-mongodb.js:134:21)
at onError (C:\anode\repo\node_modules\winston-mongodb\lib\winston-mongodb.js:144:5)
at C:\anode\repo\node_modules\winston-mongodb\lib\winston-mongodb.js:150:14
at C:\anode\repo\node_modules\winston-mongodb\node_modules\mongodb\lib\mongodb\db.js:170:16
at [object Object]. (C:\anode\repo\node_modules\winston-mongodb\node_modules\mongodb\lib\mongodb\connection\server.js:299:7)
at [object Object].emit (events.js:67:17)
at [object Object]. (C:\anode\repo\node_modules\winston-mongodb\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:97:15)
at [object Object].emit (events.js:70:17)
at Socket. (C:\anode\repo\node_modules\winston-mongodb\node_modules\mongodb\lib\mongodb\connection\connection.js:386:10)