diff options
author | Sophia Tan <sophia_tll@hotmail.com> | 2023-03-31 14:53:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-31 18:09:52 +0000 |
commit | 4aca733ab5d78dc6a7bea3fc91897bc93a8b0756 (patch) | |
tree | 6c02a6370d3fdb7de76f7af1f5fb4e5f11bc14e4 /src/mongo/db/catalog/collection_catalog.cpp | |
parent | a775740469e0057b8fbefd957d3b48d0327298cf (diff) | |
download | mongo-4aca733ab5d78dc6a7bea3fc91897bc93a8b0756.tar.gz |
SERVER-74487 Always include tenant in db name attributes in error messages
Diffstat (limited to 'src/mongo/db/catalog/collection_catalog.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_catalog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_catalog.cpp b/src/mongo/db/catalog/collection_catalog.cpp index 8981dceb535..d994aac702f 100644 --- a/src/mongo/db/catalog/collection_catalog.cpp +++ b/src/mongo/db/catalog/collection_catalog.cpp @@ -1771,8 +1771,8 @@ NamespaceString CollectionCatalog::resolveNamespaceStringOrUUID( resolvedNss && resolvedNss->isValid()); uassert(ErrorCodes::NamespaceNotFound, - str::stream() << "UUID: " << nsOrUUID.toString() - << " specified in provided db name: " << nsOrUUID.dbname() + str::stream() << "UUID: " << nsOrUUID.toString() << " specified in provided db name: " + << nsOrUUID.dbName()->toStringForErrorMsg() << " resolved to a collection in a different database, resolved nss: " << *resolvedNss, resolvedNss->dbName() == nsOrUUID.dbName()); |