[GODRIVER-246] Update bson.ErrTooSmall Created: 15/Feb/18  Updated: 28/Oct/23  Resolved: 22/Feb/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: 0.0.1
Fix Version/s: 0.0.2

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Samuel Rossi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER Alpha 2 UX

 Description   

The bson.ErrTooSmall error is used in many places, including being returned from deep recursive calls. This makes it extremely difficult to track down the stack that is generating the error. Make ErrTooSmall an error type that includes a stack trace when it's generated. Then change all the places where ErrTooSmall is used to create a new ErrTooSmall that includes a stack trace. This will greatly help in debugging problems with sizing.



 Comments   
Comment by Samuel Rossi (Inactive) [ 22/Feb/18 ]

Code review url: https://review.gerrithub.io/c/401044/

Comment by Githook User [ 22/Feb/18 ]

Author:

{'email': 'saghmrossi@gmail.com', 'name': 'Saghm Rossi', 'username': 'saghm'}

Message: GODRIVER-246 Add stack trace to ErrTooSmall

Change-Id: I319c17b94791c4e8426e63c59eb31f9d4c0ec4a7
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/f61505c8612ea86dbb17fe21881caac5ff81ae63

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