[SERVER-39604] errnoWithDescription should return error code value for unknown errors Created: 15/Feb/19  Updated: 29/Oct/23  Resolved: 28/Feb/19

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

Type: Improvement Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Security 2019-02-25, Security 2019-03-11
Participants:
Linked BF Score: 6

 Description   

Right now, if errnoWithDescription() cannot find a text description of an error code (with the XSI-compliant strerror_r) it just returns "Unknown error", which means we loose the error code value completely. This means we cannot do any research about what the error was after the fact.



 Comments   
Comment by Githook User [ 28/Feb/19 ]

Author:

{'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com', 'username': 'jbreams'}

Message: SERVER-39604 Return error code in errnoWithDescription result for unknown errors
Branch: master
https://github.com/mongodb/mongo/commit/9c6828798b304930618e46fa36f39322375f5581

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