[GODRIVER-1074] Better positional error reporting from the json and bson libraries. Created: 20/May/19  Updated: 06/Feb/23  Resolved: 06/Feb/23

Status: Closed
Project: Go Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Craig Wilson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Not all errors in the bson/json readers report the position of errors. Positions should be reported for all errors during parsing.

 

For example:

invalid JSON input; expected ISO-8601 Internet Date/Time Format as decribed in RFC-3339 for UTC datetime", 



 Comments   
Comment by Ian Whalen (Inactive) [ 20/May/19 ]

PRs welcome

Generated at Thu Feb 08 08:35:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.