summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_catalog.cpp
diff options
context:
space:
mode:
authorSophia Tan <sophia_tll@hotmail.com>2023-03-31 14:53:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-31 18:09:52 +0000
commit4aca733ab5d78dc6a7bea3fc91897bc93a8b0756 (patch)
tree6c02a6370d3fdb7de76f7af1f5fb4e5f11bc14e4 /src/mongo/db/catalog/collection_catalog.cpp
parenta775740469e0057b8fbefd957d3b48d0327298cf (diff)
downloadmongo-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.cpp4
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());