-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
mgo's Error function for command errors returned just the error message. The new driver returns "(Name) message", which causes some checks in the mongo-tools-common/db/db.go IsConnectionError function to fail.
Change this to cast err to a mongo.CommandError and get the message from that.