diff options
Diffstat (limited to 'src/mongo/base/status.h')
-rw-r--r-- | src/mongo/base/status.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/base/status.h b/src/mongo/base/status.h index ed3266566cd..d71852c6c41 100644 --- a/src/mongo/base/status.h +++ b/src/mongo/base/status.h @@ -82,6 +82,7 @@ namespace mongo { // accessors // + bool isOK() const { return code() == ErrorCodes::OK; } ErrorCodes::Error code() const { return _error->code; } const char* codeString() const { return ErrorCodes::errorString(_error->code); } const std::string& reason() const { return _error->reason; } |