coinbase / mongobetween

Apache License 2.0
111 stars 47 forks source link

Process errors returned by the server #11

Closed mdehoog closed 4 years ago

mdehoog commented 4 years ago

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.

heimdall-asguard commented 4 years ago

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