[GODRIVER-952] Lack of context in error description like "cannot decode 64-bit integer into a string type" Created: 10/Apr/19  Updated: 28/Oct/23  Resolved: 10/Apr/20

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

Type: New Feature Priority: Major - P3
Reporter: Alexander Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to GODRIVER-1118 Include tag key in Unmarshal error me... Closed
Case:

 Description   

While decoding cursor getting error like "cannot decode 64-bit integer into a string type" it is very hard to tell in which field it was occured and what record it was.

Need to way getting context about fields and even better for record contained this error.



 Comments   
Comment by Githook User [ 09/Apr/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-952 Add context to BSON decoding errors (#359)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/52d87da9d61ba2928105a3ca3a9d02ebfef82f5c

Comment by Divjot Arora (Inactive) [ 07/Apr/20 ]

https://github.com/mongodb/mongo-go-driver/pull/359

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