Created
October 5, 2011 18:05
-
-
Save aheckmann/1265184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Catch error and log | |
try { | |
// Parse the data as a reply object | |
reply = new MongoReply(parent, message); | |
} catch(err) { | |
var errObj = {err:"unparsable", bin:message, parseState:err}; | |
server.logger.error("mongoreplyParserError", errObj); | |
return parent.emit("error", errObj); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment