Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 3cc6b7d

Browse files
committed
HHVM-171: Manager::selectServer() should select exception class based on bson_error_t
1 parent ac1e8ce commit 3cc6b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MongoDB/Driver/Manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ Object HHVM_METHOD(MongoDBDriverManager, selectServer, const Object &readPrefere
618618
mongoc_server_description_destroy(selected_server);
619619
return tmp;
620620
} else {
621-
throw MongoDriver::Utils::throwRunTimeException(error.message);
621+
throw MongoDriver::Utils::throwExceptionFromBsonError(&error);
622622
}
623623
}
624624

0 commit comments

Comments
 (0)