[SERVER-19741] WriteError and WriteConcernError are not Error instances Created: 03/Aug/15 Updated: 13/Aug/16 Resolved: 10/Aug/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.1.6 |
| Fix Version/s: | 3.3.11 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Max Hirschhorn | Assignee: | Waley Chen |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Build B (10/30/15), Build C (11/20/15), Platforms 2016-08-26 |
| Participants: |
| Description |
|
There is code in bulk_api.js to set Error.prototype in BulkWriteError instances' prototype chain.
We should do the similar logic for WriteError and WriteConcernError so that the underlying WriteError of a BulkWriteError can be rethrown and still have a stack trace. |
| Comments |
| Comment by Githook User [ 10/Aug/16 ] |
|
Author: {u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}Message: |
| Comment by Githook User [ 08/Aug/16 ] |
|
Author: {u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}Message: Revert " This reverts commit f800685a05002ada9388d1fdfd84046ec6dccf70. |
| Comment by Githook User [ 08/Aug/16 ] |
|
Author: {u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}Message: |