marcello3d/node-mongolian — pull request #69 by jaekwon (2011-12-25 01:33:35+00:00)
Title: Added logging for user-callback errors

I was having issues tracking my errors raised from within my callback to .insert().

There are two ways to catch this... You can listen to connection.on('parseError', ...), or you can just try-catch. I think the try-catch is a better approach.

I feel that there is more to do here... maybe the user of mongolian-deadbeef should be able to register a callback for callbackErrors for a server/db/connection/cursor.