[CXX-1643] Use mongoc_uri_new_with_error for better exception messages Created: 06/Sep/18 Updated: 28/Oct/23 Resolved: 10/Sep/20 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | 3.3.1 |
| Fix Version/s: | 3.7.0, 3.7.0-beta1 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kevin Albertson | Assignee: | Raymund Rodriguez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CXX usability improvements |
| Quarter: | FY24Q3 |
| Description |
|
The uri constructor uses libmongoc's mongoc_uri_new here which warns a helpful message if it fails to parse. Instead, we should use mongoc_uri_new_with_error and pass that helpful error message in the exception. |
| Comments |
| Comment by Githook User [ 09/Sep/20 ] |
|
Author: {'name': 'rayangler', 'email': 'rayangler@users.noreply.github.com', 'username': 'rayangler'}Message: |