summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-06-19 16:14:21 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-06-19 17:17:49 -0400
commit1d6502682685ec60e8d517468562bc2c2bdbeeed (patch)
tree26e89d61642a12fb3f5550911c0578999f93d2d5
parent6b311efc1742cdb94381cc929c85ce8e5480b218 (diff)
downloadmongo-1d6502682685ec60e8d517468562bc2c2bdbeeed.tar.gz
SERVER-29727 Fix unused variable warning in mongo/util/uuid.cpp
-rw-r--r--src/mongo/util/uuid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/uuid.cpp b/src/mongo/util/uuid.cpp
index e3326b718bf..3c041e64010 100644
--- a/src/mongo/util/uuid.cpp
+++ b/src/mongo/util/uuid.cpp
@@ -54,7 +54,7 @@ StatusWith<UUID> UUID::parse(BSONElement from) {
try {
return UUID{from.uuid()};
} catch (const UserException& e) {
- return exceptionToStatus();
+ return e.toStatus();
}
}