Skip to content
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

Ignore dial error in dbtest after stopping server. #122

Merged
merged 2 commits into from
Mar 12, 2018

Conversation

tadukurow
Copy link

related to #117

As seen in #117, dbtest start() throws a panic when it can't start mongo.
This panic is picked up by a panichandler obscuring the actual problem.
This PR simply prints the error start() encounters to stderr, before throwing the panic.
@domodwyer domodwyer merged commit aa690cd into development Mar 12, 2018
@domodwyer domodwyer deleted the fix-dbtest-test-passing branch June 15, 2018 09:03
libi pushed a commit to libi/mgo that referenced this pull request Dec 1, 2022
* Ignore dial error when server is stopped. related to globalsign#117

* Print dbtest server starting error before panic.

As seen in globalsign#117, dbtest start() throws a panic when it can't start mongo.
This panic is picked up by a panichandler obscuring the actual problem.
This PR simply prints the error start() encounters to stderr, before throwing the panic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants