[SERVER-23501] Erroring command replies should include stringified ErrorCode Created: 04/Apr/16  Updated: 26/Apr/18  Resolved: 26/Aug/16

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Dorothy Chen
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-478 Errors raised by drivers should inclu... Implementing
Documented
is documented by DOCS-8923 Erroring command replies should inclu... Closed
Backwards Compatibility: Minor Change
Participants:

 Description   

I think this would make it easier for users (and us) to understand the output from failing commands.

Example of current output:

 {
 	"ok" : 0,
 	"code" : 9,
 	"errmsg" : "Unknown option to insert command: asdf"
 }

Example of requested output:

 {
 	"ok" : 0,
 	"code" : 9,
 	"codeName" : "FailedToParse",
 	"errmsg" : "Unknown option to insert command: asdf"
 }



 Comments   
Comment by Githook User [ 26/Aug/16 ]

Author:

{u'name': u'Dorothy Chen', u'email': u'dorothy.chen@mongodb.com'}

Message: SERVER-23501 include stringified error code in erroring command replies
Branch: master
https://github.com/mongodb/mongo/commit/6f03bed78373f186632f8d6f8a2d4fdc3e5177ee

Generated at Thu Feb 08 04:03:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.