summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/fle2_compact_cmd.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/commands/fle2_compact_cmd.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/commands/fle2_compact_cmd.cpp')
-rw-r--r--src/mongo/db/commands/fle2_compact_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/fle2_compact_cmd.cpp b/src/mongo/db/commands/fle2_compact_cmd.cpp
index 4e3d1845619..42345380a17 100644
--- a/src/mongo/db/commands/fle2_compact_cmd.cpp
+++ b/src/mongo/db/commands/fle2_compact_cmd.cpp
@@ -80,7 +80,8 @@ CompactStats compactEncryptedCompactionCollection(OperationContext* opCtx,
AutoGetDb autoDb(opCtx, edcNss.dbName(), MODE_IX);
uassert(ErrorCodes::NamespaceNotFound,
- str::stream() << "Database '" << edcNss.db() << "' does not exist",
+ str::stream() << "Database '" << edcNss.dbName().toStringForErrorMsg()
+ << "' does not exist",
autoDb.getDb());
auto catalog = CollectionCatalog::get(opCtx);