[GODRIVER-1118] Include tag key in Unmarshal error message Created: 10/Jun/19 Updated: 26/May/20 Resolved: 26/May/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Adinoyi Omuya | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 2 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
With a type like:
If data contains `a` with a `nil` value, I get the error: "cannot decode null into a string type". It would be helpful to get the full field path included in the error message as well. |