Skip to content

GODRIVER-1524 Improve error checking for loading CA certificate #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2020

Conversation

divjotarora
Copy link
Contributor

No description provided.

@divjotarora divjotarora requested review from jyemin and iwysiu March 10, 2020 21:58
if err != nil {
return err
return fmt.Errorf("error loading CA cert: %v", err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this error wrapping so it's clear that an error occurred when reading the CA file.

Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@divjotarora divjotarora merged commit 2c54694 into mongodb:master Mar 12, 2020
@divjotarora divjotarora deleted the godriver1524-loadCert branch March 16, 2020 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants