@divjotarora rightly pointed out that we're not processing any errors within the server response itself (for example, interrupted at shutdown (11600) during failover).
Review Error for sanjayprabhu @ 2020-06-20 00:10:52 UTC
User failed mfa authentication, public email is not set on your github profile. see go/mfa-help
Follow up to #8.
@divjotarora rightly pointed out that we're not processing any errors within the server response itself (for example,
interrupted at shutdown (11600)
during failover).This PR introduces this processing, copying the
extractError
function directly from https://github.com/mongodb/mongo-go-driver/blob/v1.3.4/x/mongo/driver/errors.go#L290-L409.