-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
ALL
-
Platforms 2018-02-26
uassertStatusOK() expands to calling uassertedWithLocation() with the location code (if one exists), whereas appendCommandStatus() just always uses the error code on the status.
I don't think this was intentional, and it is pretty surprising that changing a return of a bad status to be a uassertStatusOK() can result in a different error code being returned to the user.
- duplicates
-
SERVER-30580 Unify implementations of Status and DBException
- Closed